Joyson
Joyson

Reputation: 1653

Pull down list menu in android

I need to create a List view. However this list view is somewhat of a pull down menu. That is, I have to create a button on top of screen, where on clicking it, a list view will be displayed (pulled down) from top.

Can some one give me an idea about this? I mean, what is this component in Android and how do I go about it creating it?

I know the normal way of creating a list view but not this.

Upvotes: 1

Views: 7122

Answers (3)

Joyson
Joyson

Reputation: 1653

Hey thanks all for your replies i finally got want i wanted to implement.The following link helped me achieve it: http://techdroid.kbeanie.com/2009/08/android-sliding-drawer-example.html

Upvotes: 2

st0le
st0le

Reputation: 33545

If you want to do it Pull-down-from-top. You'll need to use Panel Custom view from this project. If a pull-from-below will suffice, use a Sliding Drawer. (From Android 3.0, Sliding Drawer can be configured to be pulled down aswell. See Here)

Have the Listview inside the Drawer/Panel.

Upvotes: 1

Pork 'n' Bunny
Pork 'n' Bunny

Reputation: 6731

Typically you would use a Single Choice Dialog.

http://developer.android.com/guide/topics/ui/dialogs.html#AddingAList

Upvotes: 1

Related Questions