I have a question regarding the sherlock action bar. In portrait mode, ICS does not display text next to menu items in the action bar, regardless of how much space is available. Turning to landscape mode gives the expected behavior (icons + text). If I remove the icon from the menu item, it will display the text (only) in portrait mode. Is it possible to display the text icon + in portrait mode if space is available? I use the following code to add menu items to the action bar.
@Override public boolean onCreateOptionsMenu(Menu menu) { menu.add(Menu.NONE, 1, 0, "Post").setTitle("Post").setIcon(android.R.drawable.ic_menu_save).setShowAsAction(MenuItem.SHOW_AS_ACTION_ALWAYS | MenuItem.SHOW_AS_ACTION_WITH_TEXT); return true; }
Thanks in advance.
Hadeng
source share