I want to place an item in the actionbar that has only text. I am using ActionBarSherlock. How can i do this. One is define an icon with a text. I would not prefer to do that . Is it possible to have a text item from my string resources ?
Just don't define the
android:icon
field in the menu.xml for that item.
Just figured this out, make sure to add android:showAsAction="always"
<item
android:id="@+id/menu_item"
android:showAsAction="always"
android:title="@string/menu_title" />
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With