I am implementing ActionBar to set the color for text using this style script in xml but getting error when I run my application time does anybody have idea what I have miss
AndroidManifest.xml:
<uses-sdk
android:minSdkVersion=...
android:targetSdkVersion="11" />
and
Project Properties -> Project Build Target = 11 or above
These 2 things fixed the problem for me!
This happens because in r6 it shows an error when you try to extend private styles.
Refer to this link
I tried to change target sdk to 13 but does not works!!
then when I changed compileSdkVersion 13
to compileSdkVersion 14
is compiled successfully :)
NOTE: I Work with Android Studio not Eclipse
TextAppearance.Holo.Widget.ActionBar.Title
appears to have been added in API Level 13. Make sure your build target is set to 13, not just 11.
<style name="Theme.IOSched" parent="android:style/Theme.Holo.Light">
<item name="android:windowBackground">@drawable/window_background</item>
<item name="android:actionBarStyle">@style/ActionBar</item>
</style>
you can not give your own color and backgroud in item windowBackground. give your color in your /color.xml file.
This is an old post, but if anyone comes up with this problem, i post what solved my problem:
I was trying to add the Action Bar Sherlock to my proyect when i get the error:
Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.ActionBar'.
I turns out that the action bar sherlock proyect and my proyect had differents minSdkVersion and targetSdkVersion. Changing that parameters to match in both proyect solved my problem.
<uses-sdk android:minSdkVersion="7" android:targetSdkVersion="17"/>