I want to set a custom theme to my android application, but unable to do so. Following is my xml snippet :
res/values/themes.xml
<?xml version="1.0" encoding="utf-8"?> <resources> <!-- the theme applied to the application or activity --> <style name="CustomActionBarTheme" parent="Theme.AppCompat.Light.DarkActionBar"> <item name="android:actionBarStyle">@style/MyActionBar</item> </style> <!-- ActionBar styles --> <style name="MyActionBar" parent="@android:style/Widget.Holo.Light.ActionBar.Solid.Inverse"> <item name="android:background">#FF0000</item> </style> </resources> In manifest I've changed the android:theme property to :
android:theme="@style/CustomActionBarTheme"
But still, its not working for me. The theme am getting is Theme.AppCompat.Light.DarkActionBar.