I want to customize ActionBar: change the color of the text, the background. I try to make it through styles, and it does not work. What's the catch? It works through the code, but not through xml.
<!-- Base application theme. --> <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> <!-- Customize your theme here. --> <item name="colorPrimary">@color/colorPrimary</item> <item name="colorPrimaryDark">@color/colorPrimaryDark</item> <item name="colorAccent">@color/colorAccent</item> <item name="windowActionBar">false</item> <item name="windowNoTitle">true</item> <item name="android:actionBarStyle">@style/MyActionBar</item> </style> <style name="MyActionBar" parent="AppTheme"> <item name="android:background">@color/colorAccent</item> <item name="android:textColor">@color/colorWhite</item> </style>