When I change visibility to GONE with CoordinatorLayout as parent view, the AppBarLayout already take place, but when I use the LinearLayout, i haven't this problem.
I want to use CoordinatorLayout for the slide of the AppBarLayout when scrolling RecyclerView.
First in your AppBarLayout
you should add:
app:layout_scrollFlags="scroll"
and in the FrameLayout you should add:
app:layout_behavior="@string/appbar_scrolling_view_behavior"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With