Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 675
Darko Petkovski Avatar asked May 21 '15 18:05

Darko Petkovski


1 Answers

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>
like image 57
MatrixDev Avatar answered Sep 23 '22 00:09

MatrixDev