Hello. I read android tutorials and have a problem with "Styling the Action Bar". My test application has minSdkVersion="8" and targetSdkVersion="17". When I tried to create themes.xml - file with next code I receive errors:
I added android-support-v7-appcompat.jar and added it to build path, but again receive these errors. Can you help me?
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- the theme applied to the application or activity -->
<style name="CustomActionBarTheme"
parent="@style/Theme.AppCompat.Light.DarkActionBar">
<item name="android:actionBarStyle">@style/MyActionBar</item>
<!-- Support library compatibility -->
<item name="actionBarStyle">@style/MyActionBar</item>
</style>
<!-- ActionBar styles -->
<style name="MyActionBar"
parent="@style/Widget.AppCompat.Light.ActionBar.Solid.Inverse">
<item name="android:background">@drawable/actionbar_background</item>
<!-- Support library compatibility -->
<item name="background">@drawable/actionbar_background</item>
</style>
</resources>
Error retrieving parent for item: No resource found that matches the given name '@style/Theme.AppCompat.Light.DarkActionBar'
Error: No resource found that matches the given name: attr 'actionBarStyle'.
Error: No resource found that matches the given name: attr 'background'.
Error retrieving parent for item: No resource found that matches the given name '@style/Widget.AppCompat.Light.ActionBar.Solid.Inverse'.
