Drag and drop views in android

I want to create a Draggable activity / fragment like the default settings screen in abdroid that opens when I exit the HOme screen. By dragging, I mean I want to pull the screen out of the point to close it.

I am trying to figure out the term used for this. I looked at Drag, but this is used to move around the screen. Has someone solved this? Please, help!

+3


source to share


2 answers


A good place to start is to see

DrawerLayout

This is for dragging the layout in and out of the screen.



A pretty good library that handles stuff for you:

AndroidSlidingUpPanel

0


source


Android does not provide an API to support customization-like screen development. If you need to implement it, you will have to do it yourself.



To fake customizations like the dropdown screen in your app, you would need to create a similar UI layout and use it in conjunction with the down navigation gesture (which only works when scrolling down from the top of your app) and Animation

.

+1


source







All Articles