CommonUtils icon indicating copy to clipboard operation
CommonUtils copied to clipboard

android:tint does not exist for <shape> at API Level 21

Open john2020star opened this issue 3 years ago • 2 comments

I found that you have specified the attribute android:tint in , which only exists starting from API level 22. You have specified it in shadow_bottom.xml, shadow_start.xml and shadow_top.xml, avoid using it.

john2020star avatar Mar 29 '21 12:03 john2020star

Not sure what you mean, android:tint has been added in API 21. Reference

devgianlu avatar Mar 29 '21 12:03 devgianlu

Yes, it is actually a bug in the Android framework. Check this link for your reference. https://github.com/zhanghai/AndroidFastScroll/commit/91a796aa72411d01768fa3526aca6163ed1e8e57

Workaround by using the API setTintList instead of the attribute.

john2020star avatar Mar 29 '21 22:03 john2020star