Apply Color Filter with xml in ImageView

Manuel Castro picture Manuel Castro · Feb 9, 2015 · Viewed 28.2k times · Source

I've got an ImageView and programmatically I can change its color using imageView.setColorFilter(Color.RED). There is something similar using xml??

Answer

Jofre Mateu picture Jofre Mateu · Feb 9, 2015

Yes, it's android:tint. Here you have more info.