Android - problem when setting visibility in CoordinatorLayout

When I change the visibility to GONE with the Layout coordinator as the parent view, AppBarLayout already takes place, but when I use LinearLayout, I don't have this problem.

I want to use CoordinatorLayout for an AppBarLayout slide when scrolling through a RecyclerView.

enter image description here

+7
android android-linearlayout android-coordinatorlayout
source share

No one has answered this question yet.

See related questions:

3606
Close / hide Android soft keyboard
3295
Why is the Android emulator so slow? How can we speed up Android emulator development?
3288
Correct use cases for Android UserManager.isUserAGoat ()?
2609
Is there a unique identifier for an Android device?
2510
How to keep Android activity state by saving instance state?
2097
Is there a way to run Python on Android?
1844
What is "Context" on Android?
157
Dumping with RecyclerView + AppBarLayout
5
Achieve the same behavior as AppBarLayout for any ViewGroup in CoordinatorLayout
one
Layout Coordinator and GONE Layout

All Articles