view raw
David Stanete David Stanete - 6 months ago 37
Android Question

Swipe/drag Android view from the bottom of the screen

I want to do in my app a View that I can swipe from the bottom of the window (Images below explain it better).

I want the view to stop at certain point. The view must allow to swipe/drag it to the bottom again. Any idea or tip of how can I do that?

This is what I want to have initially

enter image description here

Jon Jon

I think you are in search of a ViewDragHelper:

API doc:

How to use. This answer links to a sample project to show you how as well: ViewDragHelper: how to use it?

Dragging best practices: