在 xml 中为 ImageView 设置色调时,我收到一条警告,显示:-
必须使用 app:tint 而不是 android:tint
我为什么要使用 app:tint?
ImageViewTintDetector lint 检查已添加到androidx.appcompat:appcompat:1.2.0-alpha02 添加 Lint 规则以检查 ImageView 上的 android:tint 使用情况
实际上我还没有找到解释为什么开发人员应该用 app:tint 替换 android:tint。我的项目 minSdkVersion 是 22。
| 归档时间: |
|
| 查看次数: |
4110 次 |
| 最近记录: |