詳見 【已解决】Android中菜单的字体太小了:设置actionbar中menu的text的size

AndroidManifest.xml 的 application attribute 新增

android:theme="@style/Theme.AppTheme"

然後在 res/values/themes.xml 新增以下

<style name="AppTheme" parent="@android:style/Theme.Holo.Light">
    <item name="android:actionMenuTextAppearance">@style/MenuTextStyle</item>
</style>
 
<style name="MenuTextStyle">
    <item name="android:textColor">@android:color/white</item>
    <item name="android:textSize">18sp</item>
</style>

Comments

comments powered by Disqus
Copyright © 2013 Andro Chen
Powered by Logdown and Greyshade
Favicon from The Noun Project