Tyd*_*yde 3 android theming actionbarsherlock
我在我的应用程序中更改了ActionBar的背景颜色,并且工作正常.但后来我想在我的活动中改变我的背景颜色,现在看起来非常糟糕.
这是我的主题xml:
<style name="TucanActionBarStyle" parent="Widget.Sherlock.Light.ActionBar">
<item name="android:background">@color/actionbar_green</item>
</style>
<style name="Theme.TucanActionBar" parent="@style/Theme.Sherlock.Light">
<item name="android:actionBarStyle">@style/TucanActionBarStyle</item>
<item name="android:background">@android:color/white</item>
</style>
Run Code Online (Sandbox Code Playgroud)
这就是它的外观:http: //dl.dropbox.com/u/2683101/Screenshot_2012-05-18-19-49-23.png
您应该android:windowBackground用来更改活动背景.android:background由于上下文ContextThemeWrappers的使用方式,更改会影响许多其他事情.
| 归档时间: |
|
| 查看次数: |
935 次 |
| 最近记录: |