Error getting the parent element for the element: the resource was not found that matches the specified name @ style / Theme.Holo

This is the code in my res / values ​​/themes.xml . My minSdkVersion is set to 11. M gets an error as Parent element retrieval error: a resource was not found that matches the specified 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> 
+6
source share
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 ...

+14
source

All Articles