找不到属性' backgroundTint'的资源标识符。在包' android'

时间:2015-01-06 02:38:26

标签: android eclipse attributes styles

我找到了一些视图xml属性,例如backgroundTintbackgroundTintMode 但是当我将它用作视图属性difinition时,Eclipse会显示错误:

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

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

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

我想在Eclipse中使用那些attributs,有人可以帮助我吗?

1 个答案:

答案 0 :(得分:2)

backgroundTintbackgroundTintMode仅适用于API级别21+(Lollipop)