这是我当前的样式文件,因为我想用浅色的ActionBar制作一个黑暗的主题。使用parent =“@ android:style/Widget.Holo.Light.ActionBar”带来了Dark ActionBar
<style name="AppBaseTheme" parent="@android:Theme.Holo">
<item name="android:actionBarStyle">@style/MyActionBar</item>
</style>
<style name="MyActionBar" parent="@android:style/Widget.Holo.Light.ActionBar">
<item name="android:background">#FF00FF</item>
</style>
即正常工作,因为我的动作条为粉红色背景(截图中不共享,因为这将是太混乱)。
但不幸的是,尽管我使用了:Widget.Holo。 轻 .ActionBar,我的动作条仍然是黑暗的主题:
它是如何将有可能迫使光动作条上我的黑暗主题?
粉色背景在哪里? – jfs
不在此截图中。但它的工作原理,屏幕截图将与粉红色的混淆bg –
你是指那个下拉(这也适用于其他部分)?如果答案是肯定的,那么从'Theme.Holo'中覆盖'actionDropDownStyle'(和其他属性)风格以指向Light版本(因为'android:actionBarStyle'只改变背景,文本实际的'ActionBar'等属性)? – Luksprog