Change color of icons in API 19 KitKat

0

Since API 19 (KitKat) is still very popular, it is a good choice to support this release. However, it does not support many features, such as backgroundTint and ImageTint. This puts me in many compatibility issues and design choices.

I have several icons to load on a screen and I'm currently using setImageTintList to make the app dynamic.

"faces" and "bucks" should change color according to the element in a recyclerView. What is the best way to support this function on systems with API < 21 '

    
asked by anonymous 11.05.2017 / 15:47

1 answer

2

This can be achieved by using the compatibility libraries .

Compatibility libraries allow existing features in new android versions to be used in older versions.

For use you should download it and add the following

compile 'com.android.support:appcompat-v7:25.3.1'

in the dependencies section of the build.gradle file.

    
11.05.2017 / 15:52