I am working with ActionBar menuitem action-help, it is visible always in UPPERCASE latters but I needs to show in LOWERCASE latters.
There's been many questions on styling on action bars, but the ones I've found either are relating to styling the MenuItems Text, or have answers that don't work for me.
The question is really quite simple. I want to be able to change the text styling (even just colour or lowercase) of the menu items in the action bar.
And this question: Style an Action Bar in Android
From which I have put together a test application that I am using to try and get the menu items to change. It uses all the default values for an app created in the android studio android plugin, except for the following.
my v21\styles.xml look like
here is the code used for my AppTheme (make styles) used..
my Base Theme
<style name="AppTheme" parent="@style/Theme.AppCompat.Light.NoActionBar">
<item name="colorPrimary">@color/colorPrimary</item>
<item name="android:colorPrimaryDark" tools:targetApi="lollipop">@color/colorPrimaryDark</item>
<item name="android:colorAccent" tools:targetApi="lollipop">@color/colorAccent</item>
<item name="android:colorBackground">@color/background_material_light</item>
<item name="android:windowBackground">@color/windowBackground</item>
<item name="android:actionBarStyle">@style/MyActionBar</item>
<item name="android:actionMenuTextAppearance">@style/MyMenuTextAppearance</item>
</style>
<style name="MyMenuTextAppearance" parent="android:TextAppearance.Holo.Widget.ActionBar.Menu">
<item name="android:textAllCaps">false</item>
</style>
<style name="MyActionBar" parent="@android:style/Widget.Holo.ActionBar">
<item name="android:titleTextStyle">@style/MyActionBar.TitleTextStyle</item>
<item name="android:actionMenuTextAppearance">@style/MyActionBar.MenuTextStyle</item>
</style>
<style name="MyActionBar.TitleTextStyle"
parent="android:style/TextAppearance.Holo.Widget.ActionBar.Title">
<item name="android:textColor">#F0F</item>
<item name="android:textStyle">bold</item>
<item name="android:textSize">24dip</item>
</style>
<style name="MyActionBar.MenuTextStyle"
parent="android:style/TextAppearance.Holo.Widget.ActionBar.Menu">
<item name="android:textColor">#F0F</item>
<item name="android:textStyle">bold</item>
<item name="android:textSize">24dip</item>
</style>