SubtitleCoordinatorLayoutExample
SubtitleCoordinatorLayoutExample copied to clipboard
Using the latest appcompat-v7:25.0.0 makes the HeaderView disappear
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'
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));