I have added , menu items to my code by :
public boolean onCreateOptionsMenu(Menu menu) {
//Used to put dark icons on light action bar
menu.add("Save")
.setShowAsAction(MenuItem.SHOW_AS_ACTION_IF_ROOM);
return true;
}
The problem is i can view the menu item by clicking on the menu button on the emulator , but why it isn’t appearing on the action bar as it is supposed to .
I have 3 tabs in my app , which i’ve implemented using tabactivity . and i am using actionbrsherlock .
I can view the menu item on action bar in android 2.3.3 , but not in android 4.0.3 . In 4.0.3 , it just appears when i click on menu button .
try as per this link
On pre-Honeycomb the overflow menu for ActionBarSherlock (that is, item that do not fit into the action bar) will be placed in the normal options menu by default.
and can try