Use Bottomshet with Collapsing Toolbar in Coordinator Layout

43 Views Asked by At

I'm pretty new with CoordinatorLayout, currently I'm having a problem to implement the layout as following:

First image
This is the initial layout, the blue part is AppBarLayout (it contains CollapsingToolbarLayout), green part is a view e.g LinearLayout, the red part is the BottomSheet

. Second image
The second image here is when user drags the Bottom sheet upwards. The AppBarLayout will shrink and the Bottom sheet will expand.

Third image
At this point, if the user continues dragging Bottom sheet upwards, it will expand fully and cover the Views (green part).

If anyone has any idea, please give me some suggestions. Thank you very much!

0

There are 0 best solutions below