Android: how to show icon in ActionBar but not in options menu?

How can I show the icon in the ActionBar, but not in the options menu at the same time? Is this possible only through XML?

+5
source share
1 answer

Usually, when you have an action bar, you no longer have an action menu. Menu items do not double.

If you get the action bar in the Android SDK> 10 and the options menu on the Android SDK <= 10, consider using ActionBarSherlock to make the action bar backward compatible for older versions of Android:

http://actionbarsherlock.com/

+1
source

All Articles