Icon and Text in ActionBar menu

0

How can I always display the icon with the text on a button in ActionBar?

I did so:

<menu xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto">

    <item
        android:id="@+id/action_confirmar"
        android:title="Confirmar"
        android:icon="@drawable/ic_confirmar"
        app:showAsAction="always|withText" />

</menu>

The problem is that it is only displaying the text when the screen is in Landscape. In Portrait you have enough space to appear the text, but it does not appear.

    
asked by anonymous 29.01.2016 / 13:47

0 answers