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

SohailAziz picture SohailAziz · Nov 12, 2014 · Viewed 12.3k times · Source

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?

Answer

SohailAziz picture SohailAziz · Nov 15, 2014

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