【问题标题】:ActionBarSherlock theme colorActionBarSherlock 主题色
【发布时间】:2013-04-04 15:01:47
【问题描述】:

我希望将红色替换为 ActionBarSherlock 的默认颜色,我搜索但不知道在 style.xml 中插入什么,下面是我的代码:

<style name="Theme.Red" parent="Theme.Sherlock.Light">
    <!-- what should i insert here? -->
</style>

如果我想改变绿色高亮区域的颜色,我应该怎么做?整个栏,而不仅仅是标题。

【问题讨论】:

    标签: android colors themes android-actionbar actionbarsherlock


    【解决方案1】:

    那么,你想要一个红色的操作栏吗?

    <style name="Theme.Red" parent="Theme.Sherlock">
        <item name="android:actionBarStyle">@style/RedActionBar</item>
        <item name="actionBarStyle">@style/RedActionBar</item>
    </style>
    
    <style name="RedActionBar" parent="Widget.Sherlock.ActionBar">
        <item name="android:background">#f00</item>
    </style>
    

    【讨论】:

    • 是的,感谢您的帮助。我想我应该花一些时间在 android 主题上。
    猜你喜欢
    • 2012-04-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多