android:showAsAction="ifRoom" is not working when using ActiobarSherlock -
i have next menu.xml structure:
<menu xmlns:android="http://schemas.android.com/apk/res/android" > <item android:id="@+id/menu_button_1" android:icon="@drawable/menu1" android:showasaction="ifroom" android:title="@string/s1"/> <item android:id="@+id/menu_button_2" android:icon="@drawable/menu2" android:showasaction="ifroom" android:title="@string/s1"> </item> </menu> @override public boolean oncreateoptionsmenu(com.actionbarsherlock.view.menu menu) { // todo auto-generated method stub com.actionbarsherlock.view.menuinflater inflater =getsupportmenuinflater(); inflater.inflate(r.menu.main_menu, menu); homecoming true; }
if action bar title long menu items aren't hidden actionbar text made shorter.so instead actionbartitle thing actionbart... tried adding android:showasaction="ifroom" items nil changes. how can forcefulness menu icons hide if there no space actiobar title?
android android-actionbar actionbarsherlock
No comments:
Post a Comment