Error: No resource found that matches the given name: attr 'listViewStyle'
I have tried everything from here. Nothing is working.
I have imported API demos to the eclipse of API version 15 and also giving error in src files like "The import com.example.android.apis.R cannot be resolved"
Help me out please.
I have error wit this in values-v11/styles.xml
file
<style name="ThemeHolo" parent="android:Theme.Holo">
</style>
<!-- For API level 11 or later, the Holo theme is available and we prefer that. -->
<style name="ThemeHoloDialog" parent="android:Theme.Holo.Dialog">
</style>
<!-- For API level 11 or later, we can use the magical DialogWhenLarge theme. -->
<style name="ThemeDialogWhenLarge" parent="android:style/Theme.Holo.DialogWhenLarge">
</style>
and also I have an error in values/styles.xml "error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Theme.Holo.Light.NoActionBar'." in following lines
<style name="BadTheme" parent="@android:style/Theme.Holo.Light.NoActionBar">
</style>
您可以将Holo主题称为parent="@android:style/Theme.Holo"
,但要使用Holo主题,您必须将清单中的构建目标设置为API级别11或更高级别,您还必须将包含Holo主题的style.xml
文件到文件夹values-v11
只需删除HOLO,因为该资源不适用于该API级别
parent="android:Theme.Light"
将manifest的android:targetSdkVersion值更改为正确的版本为我解决了它。
I have faced a similar issue even with the correct settings in Properties etc. It seems a problem with Eclipse. I have removed the content of the xml files, then "save", then enter again the values ie
<style name="AppBaseTheme" parent="android:Theme.Holo.Light.DarkActionBar">
and "save" again.
你准确写了吗?
<item name="android:listViewStyle">
I resolved the same issue by adding
android:theme="@style/AppTheme"
within application tag in the AndroidManifest.xml file. This will recognize the app theme.
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme"
android:debuggable="true" >
<activity
...
</activity>
...
</application>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.