androidandroid-actionbarandroid-appcompatandroid-actionbar-compat

Actionbar menuitem text is uppercase


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


Solution

  • 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>