Saturday, 15 May 2010

android - overflow button in action bar -



android - overflow button in action bar -

can explain why newer devices such as. google nexus 5 shows overflow button in actionbar though have hardware menu button , menu options defined "never"?

<menu xmlns:android="http://schemas.android.com/apk/res/android" xmlns:yourapp="http://schemas.android.com/apk/res-auto" > <item android:id="@+id/menusettings" android:showasaction="never" android:title="@string/action_settings"/> <item android:id="@+id/menuoff" android:showasaction="never" android:title="@string/action_exit"/> </menu>

before forget, utilize appcompact7 , overflow button not appear on other devices such as. samsung s3/s4 same settings.

android:showasaction="never" means item not shown icon on actionbar, nevertheless placed within overflow menu (or normal menu if device has hardware menu button).

android android-actionbar

No comments:

Post a Comment