sheetal
sheetal

Reputation: 199

Error retrieving parent for item:No resource found that matches the given name @style/Theme.Holo

This is the code in my res/values/themes.xml. My minSdkVersion is set to 11. M getting the error as Error retrieving parent for item:No resource found that matches the given name @style/Theme.Holo.

 <?xml version="1.0" encoding="utf-8"?>
 <resources>
 <!-- the theme applied to the application or activity -->
 <style name="CustomActionBarTheme"
   parent="@style/Theme.Holo">
<item name="android:actionBarStyle">@style/MyActionBar</item>
<item name="android:actionBarTabTextStyle">@style/MyActionBarTabText</item>
<item name="android:actionMenuTextColor">@color/actionbar_text</item>
</style>

<!-- ActionBar styles -->
<style name="MyActionBar"
   parent="@style/Widget.Holo.ActionBar">
<item name="android:titleTextStyle">@style/MyActionBarTitleText</item>
</style>

<!-- ActionBar title text -->
<style name="MyActionBarTitleText"
   parent="@style/TextAppearance.Holo.Widget.ActionBar.Title">
<item name="android:textColor">@color/actionbar_text</item>
</style>

<!-- ActionBar tabs text styles -->
<style name="MyActionBarTabText"
   parent="@style/Widget.Holo.ActionBar.TabText">
<item name="android:textColor">@color/actionbar_text</item>
</style>
</resources>

Upvotes: 6

Views: 15764

Answers (2)

krishna
krishna

Reputation: 235

Make sure your build target is set to 13, not just 11. or go through this...Error retrieving parent for item: No resource found that matches the given name '@android:style/TextAppearance.Holo.Widget.ActionBar.Title'

Upvotes: 1

Gopal Gopi
Gopal Gopi

Reputation: 11131

change

<style name="CustomActionBarTheme" parent="@style/Theme.Holo">

to

<style name="CustomActionBarTheme" parent="@android:style/Theme.Holo">

and do the same for other style resources also...

Upvotes: 14

Related Questions