Error:没有资源的发现,匹配给定的名字:ATTRlistViewStyle
我已经试过各种从这里开始。没有什么工作。
我已导入API演示的API版本15日食,也给在SRC文件的错误,如进口com.example.android.apis.R解决不了的
帮我了吧。
我在错误的机智这个值-V11 / styles.xml
文件
<样式名称=ThemeHolo父=机器人:Theme.Holo>
< /风格>
<! - 对于API级别11或更高版本中,河洛主题是供我们preFER的。 - >
<样式名称=ThemeHoloDialog父=机器人:Theme.Holo.Dialog>
< /风格>
<! - 对于API级别11或更高版本,我们可以使用神奇的DialogWhenLarge主题。 - >
<样式名称=ThemeDialogWhenLarge父=机器人:款式/ Theme.Holo.DialogWhenLarge>
< /风格>
和我也有价值观的错误/ styles.xml错误:错误检索父项:没有资源的发现,匹配给定的名字'@android:风格/ Theme.Holo.Light.NoActionBar'。在下面的行
<样式名称=BadTheme父=@安卓风格/ Theme.Holo.Light.NoActionBar>
< /风格>
解决方案
您可以参考河洛主题为父=@安卓风格/ Theme.Holo
,而是利用全息主题,你必须设置构建目标,你的舱单API级别11或更高版本,你也必须把含有全息的 style.xml
文件主题文件夹值-V11
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>
解决方案
You can refer to the Holo theme as parent="@android:style/Theme.Holo"
, but to use the Holo Theme you have to set the build target in your manifest to API level 11 or later, also you have to put the style.xml
file containing the Holo theme to the folder values-v11