In the ActionBar style, remove android: background, save only the background attribute. Also make sure that you use AppTheme in the application tag or in actions that extend the action bar in your AndroidManifest.xml file. I also added the attribute "@ style /" before Widget.AppCompat with its default style defined in the android library.
Your code should look like this:
<style name="AppTheme" parent="Theme.AppCompat.Light"> <item name="actionBarStyle">@style/ActionBar</item> </style> <style name="ActionBar" parent="@style/Widget.AppCompat.ActionBar"> <item name="background">#0000ff</item> </style>
source share