JakeWharton/ActionBarSherlock — Issue #109: Option menus items bug
Author: rock3r
Created: 2011-11-13 18:10:32+00:00
State: open

On Android 2.x, if you set a menu item with `android:showAsAction="ifRoom"`, and you call `actionbar.hide()` in your code (i do it in `onCreate()`, by the way), the menu item does not show in the option menu. Instead, you can see it displays in the action bar (by commenting out the `actionbar.hide()` line), regardless of the action bar visibility. In Android 3.0+, the item shows up correctly in the option menu if no action bar is shown. This is probably due to the fact that on those platforms, it falls back on the native actionbar/menu that does not have this bug, while abs' custom implementation for Android < 3.x does.