如何更改菜单文字大小 [英] How to change the Menu text size

查看:111
本文介绍了如何更改菜单文字大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我曾经尝试过更改样式:

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!

推荐答案

在应用程序的基本主题中,添加以下项目:

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

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

然后按如下所示定义customActionBar:

Then define customActionBar as follows:

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

这篇关于如何更改菜单文字大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆