1

I have added this item to the ActionBar:

Action bar with star

and I have set this showAsAction value:

showAsAction settings

The doubt: I expected the text was also shown since the "withText" option is enabled..

user2340612
  • 10,053
  • 4
  • 41
  • 66

1 Answers1

0

android:showAsAction="always|withText" will work if there is enough space / room. Test it with landscape mode.

<item android:id="@id/item"
    android:title="text"
    android:icon="@drawable/drawable"
    android:showAsAction="always|withText" />
Alex Chengalan
  • 8,211
  • 4
  • 42
  • 56