Questions tagged [popupmenu]

Pop-up menus open to display a list of choices when triggered by the user.

620 questions
135
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
  • 3,714
  • 9
  • 19
  • 28
68
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:
Alex
  • 1,551
  • 3
  • 17
  • 30
49
votes
5 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,686
  • 4
  • 15
  • 22
46
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?
Cristian
  • 1,847
  • 2
  • 13
  • 21
32
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: