Change icon color in API 19 Kitkat

Asked

Viewed 49 times

0

Since API 19(Kitkat) is still very popular, it is a good choice to support this version. However, it does not support several Eatures, such as backgroundTint and Imagetint. This puts me in several compatibility issues and design choices.

I have several icons to load on a screen and currently I’m using setImageTintList to make the dynamics of the app.

4 emoticons coloridos e 1 cinza. 1 sinal de dinheiro colorido e 4 cinzas

The "little faces" and the "little money" should change color according to the element in a recyclerView. How best to support this function on systems with API < 21?

1 answer

2


This can be achieved by resorting to compatibility libraries.

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

To the utilise should download and add the following

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

in section dependencies of the build.Gradle file.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.