Monday, 15 August 2011

Android ActionBar Not Appearing -



Android ActionBar Not Appearing -

i know, sounds dumb, bear me.

i utilize following

android:minsdkversion="8" android:targetsdkversion="17" android:theme.holo"

when run app on 2.2 emulator, menu button brings menu.

whhen run app on 4.2 emulator, should action bar not automatically activated? can see programme icon + title. have added menu items this:

<item android:id="@+id/itemshare" android:title="@string/titleshare" android:icon="@android:drawable/ic_menu_share" android:showasaction="ifroom"></item>

i have defined

oncreateoptionsmenu

all activies inherit from.

yet, see nil "action bar" icons when running app in 4.2 emulator. must missing obvious.

i new android , eclipse, confused of above. way it, should not way pre/post honeycomb compability assuming 1 not want utilize actionbarsherlock?

whhen run app on 4.2 emulator, should action bar not automatically activated?

yes.

i can see programme icon + title.

that action bar.

yet, see nil "action bar" icons when running app in 4.2 emulator. must missing obvious.

your emulator has decided there insufficient room show icons, in overflow. depending on emulator configuration, activate overflow pressing menu button or pressing ... affordance in action bar on right.

the way it, should not way pre/post honeycomb compability assuming 1 not want utilize actionbarsherlock?

yes.

android

No comments:

Post a Comment