android中,想要设置actionbar中的menu的text的size的话,
先要搞清楚,当前用了那个theme:
AndroidManifest.xml
中,我此处是:
<
application
......
android:theme
=
"@style/AppTheme"
>
然后找到对应的theme的定义:
res/values/styles.xml
中的:
style
name
"AppTheme"
parent
"@android:style/Theme.Holo.Light"
然后添加上对应的android:actionMenuTextAppearance的定义:
item
"android:actionMenuTextAppearance"
>@style/MenuTextStyle</
</
"MenuTextStyle"
"android:textColor"
>@android:color/white</
"android:textSize"
>18sp</
如此,就可以设置对应的所要的Menu的text的style,包括文字的大小了。