How to change the Menu text size

alanchen picture alanchen · Apr 24, 2015 · Viewed 15k times · Source

I had tried change the style like this:

<item name="android:actionMenuTextAppearance">@style/MenuTextStyle</item>
<stylename="MenuTextStyle"parent="@style/TextAppearance.AppCompat.Widget.ActionBar.Menu">
        <item name="android:textColor">@android:color/white</item>
        <item name="android:textSize">16sp</item>
</style>

But it did work. sorry for my english. If you know it, tell me please. Thank you in advance!

Answer

VjLxmi picture VjLxmi · Apr 24, 2015

In your application's base theme, add the following item:

<item name="android:actionMenuTextAppearance">@style/customActionBar</item>

Then define customActionBar as follows:

<style name="customActionBar" parent="@android:style/TextAppearance.Holo.Widget.ActionBar.Menu">
    <item name="android:textSize">16sp</item>
</style>