Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

android

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>
like image 283
sheetal Avatar asked Jan 10 '14 06:01

sheetal


2 Answers

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...

like image 176
Gopal Gopi Avatar answered Nov 24 '22 09:11

Gopal Gopi


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'

like image 31
krishna Avatar answered Nov 24 '22 08:11

krishna