PopupMenu not showing icons and how to highlight PopupMenu item when its opened
问题 I am using PopupMenu from android.support.v7. I am trying to show icons with text. But only text is showing. I tried to used normal code: android:icon="@android:drawable/ic_menu_camera" but its not working with PopupMenu. One more question, can we highlight PopupMenu item when its opened ? Please check the reference image here 回答1: If you are using popup menu just copy the below code and run it, you will get icons in popupmenu PopupMenu popup = new PopupMenu(getApplicationContext(), view);