No matter how I modify the styles, the background color of the box pointed to by the red arrow just won't change from the background.
How do I change that color? I'm targeting 4.0+ and don't care about 4.0- devices and OSes.
Here's a link to my styles.xml file. Sorry I had to censor a few things as this project is under an NDA.
I have tried many things including:
android:background
in windowTitleBackgroundStyle
android:background
in actionBarStyle
android:background
in actionBarWidgetStyle
android:actionBarItemBackground
None of those work. That text view seems to always stick to the android:background
value from my base theme and nothing was able to override it.
What am I missing or doing wrong?
Well you need to change android:background with windowBackground
<style name="CCCBaseTheme" parent="@android:style/Theme.Holo">
<item name="android:windowBackground">@color/nav_background</item>
<item name="android:textColor">@color/text</item>
<item name="android:actionBarStyle">@style/CCCWidgetActionBar</item>
</style>
hope this will help.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With