Open vanlooverenkoen opened 7 years ago
try changing app:showAsAction="ifRoom"
to app:showAsAction="always"
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
tools:context=".component.main.MainActivity">
<item
android:id="@+id/optionHome"
android:icon="@drawable/ic_home_white_24dp"
android:title="Home"
app:showAsAction="always" />
<item
android:id="@+id/filter"
android:icon="@drawable/ic_filter_list_white_24dp"
android:title="filtro"
app:showAsAction="always">
<menu>
<item
android:id="@+id/filterOpen"
android:checkable="true"
android:checked="true"
android:title="aperto" />
<item
android:id="@+id/filterClosed"
android:checkable="true"
android:checked="true"
android:title="chiuso" />
</menu>
</item>
</menu>
I have the same problem!
the show by rank & sort by name are never shown (no popupmenu will ever be created)