As stated here I should be able to change the color of my ActionBar if I define a primary color in my style.
<style name="AppTheme" parent="android:Theme.Material">
<item name="android:colorPrimary">#ff0000</item>
</style>
However the color is still the grayish default color. Am I missing something?
As the docs say, you should use @android:style/Theme.Material
as your parent theme, not android:Theme.Material
.
Then you should be able to use <item name="android:colorPrimary">#ff0000</item>
like you did already.
There is a values-21 folder... I made the changes in the values folder and of course it has not been used.
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