androidandroid-actionbaroverflow-menu

How to remove overflow menu 3-dots?


Please help me understand. I read somewhere saying that if I set up android:targetSdkVersion="14. These 3-dots will be gone.

Why these 3-dots still show up on mine?

They don't show up until I come back from another activity. I pressed the menu key after I came back from another activity, they showed up....

I am using actionbar menus so I don't need these ugly 3-dots on my app.

How can I remove them completely?

Thanks

Manifest:

  <uses-sdk
    android:minSdkVersion="14"
    android:targetSdkVersion="19" />

<application
    android:allowBackup="true"
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name"
    android:theme="@style/MyAppActionBarTheme" >

MainActivity:

  @Override
public boolean onCreateOptionsMenu(Menu menu) {
    // Inflate the actionbar menu; this adds items to the action bar.
    getMenuInflater().inflate(R.menu.actionbar_menu, menu);                 
    return super.onCreateOptionsMenu(menu);
}

Solution

  • in menu.xml u can add android:showAsAction="" with these values never,ifRoom,always,withText,collapseActionView you can use them in | combinations.


    in you case you can use android:showAsAction="always"