Pop-up menus open to display a list of choices when triggered by the user.
Questions tagged [popupmenu]
669 questions
145
votes
4 answers
Android custom dropdown/popup menu
How do I do a custom dropdown/popup menu anchored to a button?
I need it to work like the popup menu (anchored to a view), and do something when I click an item from the menu.
How do I add items to the menu by code, keeping menu's height and make…

stanete
- 4,062
- 9
- 21
- 30
74
votes
12 answers
PopupMenu with icons
Of course we are dealing here with SDK 11 and above.
I intend to do something similar to this:
Next to each item in that PopupMenu, I would like to place an icon.
I created an XML file and placed it in /menu:
52
votes
5 answers
What's the name of the little widget with three dots inside a cardview in android?
What's the little widget with three dots? How can I add it to my app?

Cristofor
- 2,077
- 2
- 15
- 23
50
votes
6 answers
Show popup menu on `ActionBar` item click
I have an ActionBar with an action item on it. After clicking on the action item, I want to show a popup menu.
I implemented this method, but I want to anchor it to the action item or to the ActionBar, not to any view from layout. How to get some…

pcu
- 2,745
- 4
- 18
- 22
37
votes
4 answers
android popup menu text color (AppCompat)
I need to change text color of a popuo menu but I don't find any way for do this, I can change background of popmenu but not the text, I edit the style.xml in this way: