SubtitleCoordinatorLayoutExample icon indicating copy to clipboard operation
SubtitleCoordinatorLayoutExample copied to clipboard

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

Open taaeng opened this issue 9 years ago • 1 comments

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'

taaeng avatar Oct 28 '16 14:10 taaeng

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));

nbmaltais avatar Nov 24 '16 20:11 nbmaltais