i have a layout like this
i want then i swipe up fragment, my bottom sheet will open. How can i do that?
I really appreciate your help and hope you have a nice day!
i have a layout like this
i want then i swipe up fragment, my bottom sheet will open. How can i do that?
I really appreciate your help and hope you have a nice day!
As your template shows, the fragment you want to open by swipe is already shown on the screen. In this case you better read about Material Bottom Sheet The way you can do this swipe action depends on layout below the bottomsheet. For example, scrollable views like NestedScrollView or RecyclerView have OnScrollListener where you can easily control state and position(transition) of bottomsheet. On the other hand, if your foreground layout is not scrollable, try adding CoordinatorLayout for some magic =)