Question

I have an almost empty android project which uses appcomat.
I have one menu item which needs to be always hidden (shown only in dropdown when it's clicked)

    <item
        android:id="@+id/action_settings"
        android:title="@string/action_settings"
        android:orderInCategory="100"
        app:showAsAction="never"/>

It's working as expected on my Nexus7 but on Galaxy S3, with Android 4.3, the icon in the actionbar isn't shown at all.

Était-ce utile?

La solution

Because Galaxy s3 is not tablet and it has hardware menu button which will open your menu. So if there is hardware menu button you will not get overflow button.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top