Pareek
Pareek

Reputation: 153

Drag views in android

I want to create a Draggable activity/fragment like the default settings screen in abdroid which opens when I pull down from HOme screen. By draggable i mean I want to pull the screen down from a point to close it.

I am trying to figure out the term used for this. I went through Drag views but that is used for moving view around the screen. Has someone solved this? Please help!

Upvotes: 3

Views: 118

Answers (2)

yshahak
yshahak

Reputation: 5096

Good place to start is to look on

DrawerLayout

It for drag layout into the screen and out.

A pretty good library that handle the stuff for you is:

AndroidSlidingUpPanel

Upvotes: 0

Bhoot
Bhoot

Reputation: 2633

Android does not provide any API to support development of the settings-like screen. If you have to implement it, you will have to do that by yourself.

In order to fake the settings-like pull down screen within your application, you will need to create similar UI layout and use it in combination with the swipe down gesture (which works only when you swipe from the top within your application) and Animation.

Upvotes: 1

Related Questions