7

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

Drew Noakes
  • 300,895
  • 165
  • 679
  • 742
RailsSon
  • 19,897
  • 31
  • 82
  • 105
  • Check [this link](http://www.londatiga.net/it/how-to-create-quickaction-dialog-in-android/) – fedj Aug 10 '10 at 18:56
  • I found a screenshot of the menu http://youchoob.org/popup.jpg – RailsSon Aug 10 '10 at 19:28
  • Nice find fedj. I didn't know if there was any code floating out there for the 'Quick Action'. Hopefully Android makes this part of the API soon. – Aurora Aug 10 '10 at 20:48
  • Yep but the problem stays for older versions of android. The problem is that HTC, Samsung and others are "a bit" slow to make updates. That's why we (android developers) always need to find tricks :s – fedj Aug 10 '10 at 21:01

4 Answers4

11

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.

Community
  • 1
  • 1
Aurora
  • 4,384
  • 3
  • 34
  • 44
1

The source code for the contacts is open source. You should look around here and see if you can find it.

https://android.googlesource.com/platform/packages/apps/Contacts

I'm looking now if I find it I will edit.

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
Mike
  • 1,481
  • 6
  • 17
  • 22
1

Please find the code OR framework from here :

http://www.londatiga.net/it/how-to-create-quickaction-dialog-in-android/

Bipin Vayalu
  • 3,025
  • 2
  • 25
  • 39