How to show/hide fragment with swipe up/down like soundcloud android app

14.9k views Asked by At

image1image2image3

I am getting curious to know that how a view can be created like the one shown below . Is this drag and drop or some custom view with gesture detection and animations? What can be a good starting point?

2

There are 2 answers

0
SohailAziz On

ViewDragHelper can be used to achieve this effect. Some good tutorials and samples are: dragging-with-viewdraghelper and each-navigation-drawer-hides-a-viewdraghelper and DraggablePanel and AndroidSlidingUpPanel

0
MJakhongir On

Checkout BottomSheetDialogFragment from new Material design, here is a good tutorial on how to do it