I have a menu item, with icon and text. I am using Appcompat v7 library. The menu item is not displaying text, even when showAsAction is set to withText|always or vice-versa.
menu.xml
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<item
android:id="@+id/action_next"
android:icon="@drawable/ic_action_registration_next"
android:orderInCategory="0"
android:title="Next"
app:showAsAction="always" />
</menu>
I have tried these combinations for showAsAction.
always|withText
withText|always
ifRoom|withText
The toolbar only shows the icon, but not the title. How can i show both title and icon? Please look at the image below:
Let me know if you need anything else.