Anthea
Anthea

Reputation: 3809

can't hide the actionbar logo

Somehow it does not work to hide the activity icon in my actionbar. I tried:

ActionBar ab = activity.getActionBar();
ab.setDisplayHomeAsUpEnabled(false);
ab.setDisplayUseLogoEnabled(false);

where is the bug?

Upvotes: 1

Views: 3601

Answers (2)

Tommeow
Tommeow

Reputation: 11

 <item name="android:displayOptions">showTitle</item>

Upvotes: 0

Michael Celey
Michael Celey

Reputation: 12745

Set the display option to turn off DISPLAY_SHOW_HOME.

getActionBar().setDisplayShowHomeEnabled(false);

Upvotes: 17

Related Questions