找不到安卓资源

标签 android xml

我把它放在我的 LinearLayout 中

style="?android:attr/buttonBarStyle"

但是我遇到了这样的错误

No resource found that matches the given name (at 'style' with value '?android:attr/buttonBarStyle').

怎么解决这个问题?

最佳答案

您使用的是哪个版本? as style="?android:attr/buttonBarStyle"在 Android v3.0 中可用

检查引用:http://developer.android.com/reference/android/R.attr.html

关于找不到安卓资源,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5799410/

相关文章:

java - 如何在 xsd 文件中指定架构位置?

android - 删除卸载应用程序时由手机间隙创建的文件

android - 使用 android 独立工具链交叉编译 C 源项目时构建错误

Android:如何在普通类(class)内获得给定 Activity 的 View ?

php - 删除相同 "KeyWord"模式的上一条记录

xml - 更正 Doxygen XML 输出中的错误

python-pptx - 如何以编程方式访问演示文稿部分标题?

android - onNewPicture() 什么时候被调用?

c# - 在 C# 中将字符串转换为 XmlNode 的更好方法

xml - 如何以格式化的 XML 格式查看 RSS 提要?