没有在包'机器人'发现属性“backgroundTint'资源标识符 [英] No resource identifier found for attribute 'backgroundTint' in package 'android'

查看:470
本文介绍了没有在包'机器人'发现属性“backgroundTint'资源标识符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我发现了一些看法XML属性,例如 backgroundTint backgroundTintMode

但是当我用它作为视图属性difinition,Eclipse中显示了一个错误:

I found some view xml attributes such as backgroundTint, backgroundTintMode.
But when I use it as view attribute difinition, Eclipse shows an error for:

No resource identifier found for attribute 'backgroundTint' in package 'android'

当我用它作为样式定义,Eclipse中显示错误:

And when I use it as style definition, Eclipse shows error for:

 No resource found that matches the given name: attr 'android:backgroundTint'

我想在Eclipse中正常使用这些attributs,有人可以帮我吗?

I want to use those attributs normally in Eclipse, can someone help me?

推荐答案

<一个href=\"http://developer.android.com/reference/android/view/View.html#setBackgroundTintList(android.content.res.ColorStateList)\"相对=nofollow> backgroundTint 和<一个href=\"http://developer.android.com/reference/android/view/View.html#setBackgroundTintMode(android.graphics.PorterDuff.Mode)\"相对=nofollow> backgroundTintMode 仅在API层面提供21+(棒棒堂)

backgroundTint and backgroundTintMode are only available in API level 21+ (Lollipop)

这篇关于没有在包'机器人'发现属性“backgroundTint'资源标识符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆