【发布时间】:2014-04-30 15:28:53
【问题描述】:
我想更改操作栏中菜单项文本的颜色。我试图改变主题,但没有任何效果。我正在使用 API 19:
这是我的res\values\styles.xml
<resources>
<!--
Base application theme, dependent on API level. This theme is replaced
by AppBaseTheme from res/values-vXX/styles.xml on newer devices.
-->
<style name="AppBaseTheme" parent="Theme.AppCompat.Light">
<!--
Theme customizations available in newer API levels can go in
res/values-vXX/styles.xml, while customizations related to
backward-compatibility can go here.
-->
</style>
<!-- Application theme. -->
<style name="AppTheme" parent="AppBaseTheme">
<!-- All customizations that are NOT specific to a particular API-level can go here. -->
</style>
<style name="LoginFormContainer">
<item name="android:padding">28dp</item>
</style>
</resources>
项目还在res\values-v11\res\values-v14\中生成styles.xml
我不知道我是否必须更改主题或只是设置一个属性或其他东西,任何帮助我都会非常感激。谢谢!
【问题讨论】:
标签: android menuitem android-theme android-menu