I want to realize a custom popup menu like Twitter in Android for example with item and picture but I don\'t know what\'s the component used for that.
In Material
Easier solution. Add this just before you .show() method.
try { Field mFieldPopup=popupMenu.getClass().getDeclaredField("mPopup"); mFieldPopup.setAccessible(true); MenuPopupHelper mPopup = (MenuPopupHelper) mFieldPopup.get(popupMenu); mPopup.setForceShowIcon(true); } catch (Exception e) {}