Here is my menu
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<item android:id="@+id/action_share"
android:title="@string/share_action"
app:showAsAction="always"
android:icon="@drawable/share_icon"
app:actionProviderClass="android.support.v7.widget.ShareActionProvider"/>
</menu>
This MenuItem, when clicked displays a list of apps that can share a document. If I put this MenuItem in the app bar, then when I click on share, the options are presented with their respective icons. But if I click on this MenuItem from inside a PopupMenu MenuItem, then the options are presented without their respective icons. So here is my question: How do I get the icons to be presented in the PopupMenu as well?
While I hope I have done a good job describing my problem, let me re-emphasize that it is not as Is it possible to display icons in a PopupMenu?
By the way, sometimes the icons flicker into view and then immediately disappear.