0

Because API 19 (KitKat) is still very popular, it's a good choice to support this release. However, it does not support many features, such as backgroundTint and ImageTint. This puts me in various 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.

The "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?

Willian Soares
  • 320
  • 4
  • 16

1 Answers1

1

I'm not sure what APIs you exactly mean by saying "backgroundTint and ImageTint", but there's a compatibility ViewCompat class which will backport some functionality up to API 4.

Amongst them are:

If by saying "ImageTint" you meant android:tint or setImageTintList(), then this answers your question.

Community
  • 1
  • 1
azizbekian
  • 60,783
  • 13
  • 169
  • 249