我发现了一些 View xml 属性,例如 backgroundTint
、backgroundTintMode
。
但是当我使用它作为 View 属性定义时,Eclipse 显示错误:
No resource identifier found for attribute 'backgroundTint' in package 'android'
当我使用它作为样式定义时,Eclipse 显示错误:
No resource found that matches the given name: attr 'android:backgroundTint'
我想在 Eclipse 中正常使用这些属性,有人可以帮助我吗?
最佳答案
backgroundTint和 backgroundTintMode仅适用于 API 级别 21+ (Lollipop)
关于android - 在包 'backgroundTint' 中找不到属性 'android' 的资源标识符,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27791290/