EGHDK
EGHDK

Reputation: 18120

Using ActionBarSherlock Menus shows old menu button on new 4.0 and higher - Picture Included

I've been looking for a while and I just want to know whether or not I'm wating my time trying to get rid of the little menu icon that show's up in my app to support older applications that don't have the ActionBar implemented.

enter image description here

How do I get rid of it (as a bonus: does it have an actual name)?

Upvotes: 1

Views: 785

Answers (2)

MH.
MH.

Reputation: 45493

First the bonus: it's called the legacy overflow button.

The correct way to get 'rid' of it on devices that do not implement a dedicated menu button, is to set either minSdkVersion or targetSdkVersion to 11 or higher. In that case, the system will not add the legacy overflow button.

There is a small exception though: if you do not use the ActionBar, set minSdkVersion to 10 or lower and set targetSdkVersion to 11, 12, or 13, Android will add the legacy overflow button when running your app on a handset with Android 4.0 or higher.

You can read all the details in this blog post on the Android dev website.

Upvotes: 4

Jake Wharton
Jake Wharton

Reputation: 76075

Set your targetSdkVersion to 14 or higher.

Upvotes: 2

Related Questions