I have added this item to the ActionBar:
and I have set this showAsAction value:
The doubt: I expected the text was also shown since the "withText" option is enabled..
I have added this item to the ActionBar:
and I have set this showAsAction value:
The doubt: I expected the text was also shown since the "withText" option is enabled..
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" />