Pergunta

I seem to be having trouble getting rid of this second bar, shown here: http://i.imgur.com/RfR2J.png (cant post images)

It doesn't show when in landscape view, or on my 10" tablet in portrait view.

I've tried the following fixes:

 android:uiOptions="none" 

in my manifest

Here is the code for my items:

    <item android:id="@+id/profile"     
    android:title="User Profile"
    android:layout_gravity="left"
    android:showAsAction="ifRoom|withText" ></item>
Foi útil?

Solução

This second bar looks like the Tab action bar, try to put getSupportActionBar().setNavigationMode(ActionBar.NAVIGATION_MODE_STANDARD); somewhere in your code (in onCreate() or onStart() for example).

Also be sure you have the latest version of ActionBarSherlock installed.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top