How do I remove settings icon (overflow menu) on top-right of action bar?

android, android-actionbar, java

Solution

If you mean the three dots, that's called the overflow menu. It exists on devices which do not have a hardware menu button - which your Galaxy S3 has, while the Nexus 7 does not. So on your S3 you press the menu button and get the popup at the bottom, but on the Nexus you press the 3 dots and get the overflow popup dropping down from the action bar. If it wasn't there, how would you be able to access overflow items?

If you'd simply like to remove it altogether, just delete the first `<item />` entry in the `menu.xml` you posted.

Problem

How do I remove the settings icon from the top-right of the action bar? When I emulate on my actual Samsung galaxy s3 phone, it is not there, however, when I emulate on an AVD for the Nexus 7, it appears. Here is the code for my menu: ``` <menu xmlns:android="http://schemas.android.com/apk/res/android" > <item android:id="@+id/action_settings" android:orderInCategory="100" android:showAsAction="never" android:title="@string/action_settings"/> <item android:id="@+id/main_menu_actionbutton" android:orderInCategory="100" android:showAsAction="always" android:title="@string/Menu"/> </menu> ```

Original source