I have looked at the android documentation and other examples but still cant get my action bar style to work. I have set my theme to "AppTheme" in the android manifest but the background color won't change.
Here is my styles.xml:
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
<item name="android:actionBarStyle">@style/ActionBarTheme</item>
</style>
<style name="ActionBarTheme" parent="Widget.AppCompat.Light.ActionBar.Solid.Inverse">
<item name="android:background">#9D0D0D</item>
<item name="background">#9D0D0D</item>
</style>
I found out that I need to define the style twice, once using the item name "android:background" and another using the item name "background". The latter is for support library compatibility. I get this error when I run the app:
Error:(11, 41) Color types not allowed (at 'background' with value '#9D0D0D').
Why does android not allow a color with the item name "background" but it allows a color with "android:background"? Is there anything else that could be wrong?