Error: No resource found that matches the given name: attr 'listViewStyle'
我已经尝试了这里的一切。没有任何效果。
我已将 API 演示导入 API 版本 15 的 Eclipse,并且还在 src 文件中出现错误,例如“无法解析导入 com.example.android.apis.R”
请帮帮我。
我在 values-v11/styles.xml
文件中有错误
<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>
而且我在 values/styles.xml 中有一个错误“错误:检索项目的父项时出错:找不到与给定名称'@android:style/Theme.Holo.Light.NoActionBar'匹配的资源。”在以下几行中
<style name="BadTheme" parent="@android:style/Theme.Holo.Light.NoActionBar">
</style>
最佳答案
您可以将 Holo 主题称为 parent="@android:style/Theme.Holo"
,但要使用 Holo 主题,您必须将 list 中的构建目标设置为 API 级别11 或更高版本,您还必须将包含 Holo 主题的 style.xml
文件放入文件夹 values-v11
关于android - 错误 : Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Holo' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12295018/