app:backgroundTint对ViewGroup没有影响

时间:2019-02-16 16:30:49

标签: android backwards-compatibility

我使用了一个可绘制的xml文件作为约束布局背景。现在我只想更改此布局的颜色。我使用了android:backgroundTint,它解决了我的问题。但是我的最小sdk是17,而android:backgroundTint需要sdk 21和更高版本,为了解决该问题,我使用了app:backgroundTint,但没有效果。

enter image description here enter image description here

0 个答案:

没有答案