Actionbar menuitem text is uppercase

Darko Petkovski picture Darko Petkovski · May 21, 2015 · Viewed 13.9k times · Source

I have a menu item in my actionbar that shows only the text of the item - not the icon. And all is ok but just somehow the title of the item is going uppercase. can Can someone tell me how can I get it back to be as defined. Here is the menu xml i have:

 <?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_download"
            android:orderInCategory="99"
            app:showAsAction="always|withText"
            android:title="Download"/>

    </menu>

and I get an Item displayed as DOWNLOAD instead of Download

Answer

MatrixDev picture MatrixDev · Sep 24, 2015

This one helped me (I'm using AppCompat)

<item name="actionButtonStyle">@style/AppTheme.Widget.ActionButton</item>

<style name="AppTheme.Widget.ActionButton" parent="@style/Widget.AppCompat.ActionButton">
    <item name="textAllCaps">false</item>
</style>