我在styles.xml文件中使用以下代码行:
<resources>
<style name="AppTheme" parent="Theme.AppCompat.Light">
//Other three color items
<item name="actionBarStyle">@style/ActionBarTheme</item>
</style>
<style name="ActionBarTheme" parent="Widget.AppCompat.Light.ActionBar">
<item name="background">@color/colorLightGreen</item>
</style>
</resources>
这就是colors.xml中颜色的定义方式:
<color name="colorLightGreen">#008000</color>
而且颜色不会改变。我错过了什么?谢谢
你的意思是...... @ color / colorDarkGreen