Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No resource found that matches the given name '@style/ Theme.Holo.Light.DarkActionBar'

Tags:

android

Platform:4.3

API Level:18

AndroidManifest.xml:

<uses-sdk     android:minSdkVersion="18"     android:targetSdkVersion="18" /> 

values-v14\styles.xml:

  <resources>  <!--     Base application theme for API 14+. This theme completely replaces     AppBaseTheme from BOTH res/values/styles.xml and     res/values-v11/styles.xml on API 14+ devices. --> <style name="AppBaseTheme" parent="android:Theme.Holo.Light"> </style>   <style name="CustomActionBarTheme"        parent="@style/Theme.Holo.Light.DarkActionBar">     <item name="android:actionBarStyle">@style/MyActionBar</item> </style>  <style name="MyActionBar"        parent="@style/Widget.Holo.Light.ActionBar.Solid.Inverse">     <item name="android:background">@drawable/actionbar_background</item> </style> 

I am an android newbie.Thanks very much!

like image 719
user441222 Avatar asked Aug 22 '13 02:08

user441222


2 Answers

Do this:

"android:style/Theme.Holo.Light.DarkActionBar" 

You missed the android keyword before style. This denotes that it is an inbuilt style for Android.

like image 114
Sushil Avatar answered Sep 27 '22 18:09

Sushil


Make sure you've set your target API (different from the target SDK) in the Project Properties (not the manifest) to be at least 4.0/API 14.

like image 31
Harshal Benake Avatar answered Sep 27 '22 19:09

Harshal Benake