This question already has an answer here:
I am developing the android application. have one doubt regarding reduce the text size for action bar menu item. this my code.
<style name="MyActionBar.MenuTextStyle" parent="android:style/TextAppearance.Holo.Widget.ActionBar.Menu">
<item name="android:textColor">#888888</item> <!--
<item name="android:textStyle">bold</item> -->
<item name="android:textSize">10dip</item>
<item name="android:textAppearance">@android:style/TextAppearance.Medium</item>
</style>
Thanks in advance..
SilentKiller
Instead of dip try with sp
Check this Answer for better understanding.
check the following code :
<style name="MyActionBar.MenuTextStyle" parent="android:style/TextAppearance.Holo.Widget.ActionBar.Menu">
<item name="android:textColor">#888888</item> <!--
<item name="android:textStyle">bold</item> -->
<item name="android:textSize">20sp</item>
<item name="android:textAppearance">@android:style/TextAppearance.Medium</item>
</style>
Code adopted from this link. Changing text Size of menu item in android
来源:https://stackoverflow.com/questions/25278637/how-resize-the-action-bar-menu-text-size-in-android