Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using the latest appcompat-v7:25.0.0 makes the HeaderView disappear #9

Open
taaeng opened this issue Oct 28, 2016 · 1 comment
Open

Comments

@taaeng
Copy link

taaeng commented Oct 28, 2016

When collapsed the HeaderView disappears for a brief moment when scrolling down.

compileSdkVersion 25
buildToolsVersion "24.0.3"

compile 'com.android.support:appcompat-v7:25.0.0'
compile 'com.android.support:recyclerview-v7:25.0.0'
compile 'com.android.support:cardview-v7:25.0.0'
compile 'com.android.support:palette-v7:25.0.0'
compile 'com.android.support:design:25.0.0'

@nbmaltais
Copy link

The blink is caused by the elevation of the appbar changing when you scroll. Add this to the behavior class onDependentViewChanged method and it should solve the issue:
ViewCompat.setElevation(child,ViewCompat.getElevation(dependency));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants