How to show / hide a fragment by scrolling up / down, as a soundcloud Android application

image1image2image3

I am curious to know how you can create a view as shown below. Is it a drag and drop or some kind of custom view with gesture detection and animation? What could be a good starting point?

+5
source share
1 answer

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

+16
source

Source: https://habr.com/ru/post/1206687/


All Articles