Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android popup menu

I am making an Android app. I have a list of items displaying. I am looking to create a popup menu just like the one that pops up when you tap the avatar of a contact in the contact list. I have tried looking through the Android reference but can not find it.

Has anyone created one of these popup menus? A link to the reference or a code sample is fine.

Screenshot of menu:

http://www.youchoob.org/pics/popup.jpg

like image 902
RailsSon Avatar asked Aug 10 '10 17:08

RailsSon


2 Answers

What you are describing is called a 'Quick Action'. This is actually a user interface pattern - there isn't an existing widget or anything in the API for this. They discussed it at Google IO (See in this video here, at the 15:40 mark), and also there has been some discussion on how to implement it on stack overflow, specifically this question. If you start digging around (now that you know the name of what you are looking for) you might find more.

like image 173
Aurora Avatar answered Sep 23 '22 14:09

Aurora


you can find "QuickAction" widget in

https://github.com/cyrilmottier/GreenDroid

below is a demo activity

https://github.com/cyrilmottier/GreenDroid/blob/master/GDCatalog/src/com/cyrilmottier/android/gdcatalog/QuickActionActivity.java

like image 45
chengbo Avatar answered Sep 19 '22 14:09

chengbo