<menu xmlns:android="http://schemas.android.com/apk/res/android">
<item android:id="@+id/menu_settings"
android:icon="@drawable/ic_launcher"
android:title="One"
android:orderInCategory="0"
android:showAsAction="ifRoom" >
<menu>
<item android:id="@+id/subItem1"
android:title="sub 1" />
<item android:id="@+id/subItem2"
android:title="sub 2" />
</menu>
</item>
I want an icon and title for one of my menu tabs but only the icon shows up, where am I going wrong?
You should add
withText:However, it’s only a hint and there’s no guarantee that your tab will display the text. It depends on the device screen size.