2

I want to make MenuItem title with lower case in the Toolbar.
my menu.xml

 <item
    android:id="@+id/action_done"
    app:showAsAction="always"
    android:title="Done"/>

On the Toolbar it shows as "DONE" but I want that it show it as "Done". I tried to solve this case by Using textAllCaps="false" but I could not find any proper parent class to apply style for "actionMenuTextAppearance".

What would be the right solution, I need a guidance here, Thank you.

Bhavik Kamdar
  • 301
  • 1
  • 7
  • 15
  • 1
    Show your styles.xml code. – Yuva Raj May 08 '15 at 05:02
  • 1
    this is my style and I used it in my AppTheme as : @style/menu_textOnlyStyle – Santosh Bhandary May 08 '15 at 05:31
  • @SantoshBhandary has the answer right here for creating a style and putting it in the app's theme. This is the only solution I've found that works. – David S Alderson Aug 12 '21 at 14:58

1 Answers1

0

Try to use something like this:

 <item
    android:id="@+id/action_done"
    app:showAsAction="always"
    android:title="@string/action_done"/>

instead of this

 <item
    android:id="@+id/action_done"
    app:showAsAction="always"
    android:title="Done"/>

and in strings.xml

<resources>

    <string name="action_done">Done</string>
</resources>
Krupa Patel
  • 3,309
  • 3
  • 23
  • 28