I have a problem with my app. I need to show a PopupMenu
and I need every item in this menu to contain text and an image. The images should be displayed to the
Unfortunately PopupMenu
does not support icons by default.
Alternatives include creating your own class which extends PopupMenu or more simply switching to using an ActionBar. There is a GitHub repository for an Android Compatibility popup menu with icons, which might be helpful.
Of the three options I would suggest going with the ActionBar
because android seem to be heavily pushing the use of the ActionBar
as best practice over the traditional header menus in their guides.
I hope this helps.