Bryan
Bryan

Reputation: 275

how to create a custom drop down menu in android

I wanna make a custom menu that appears when user touches a button. here is an image of what i want to do exactly.

enter image description here

If anyone can point me in the direction on how to do this i would greatly appreciate it. I want them to be able to click on it and then it input a specific text. Thank you for any help you can give me

Upvotes: 2

Views: 2753

Answers (2)

Blundell
Blundell

Reputation: 76526

You can use a Sliding Drawer:

http://developer.android.com/reference/android/widget/SlidingDrawer.html

enter image description here


Or the new 'Ribbon Menu' this has other names as well, it's the menu off the new YubTube app or the Facebook app.

https://github.com/darvds/RibbonMenu

Upvotes: 1

Nelson Ramirez
Nelson Ramirez

Reputation: 8004

You have several options here: You can create a dialog activity with a translucent background and lay it out however you'd like. Then you can just call startActivityForResult() on it.

Here's an example:

http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/app/TranslucentActivity.html

Upvotes: 0

Related Questions