-3

I have an image template that contains on the top of a transparent background a white only icon. How can I draw this icon with differents color (ex: blue, yellow, etc.)? For example I would like to print it in yellow at someplace and in blue at another place.

zeus
  • 12,173
  • 9
  • 63
  • 184

1 Answers1

0
<ImageView
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:src="@drawable/icon"
    android:tint="@color/tint_color" />

Result with red and yellow tint colors:

result

Also there are several setColorFilter methods in ImageView. Check this post

ashakirov
  • 12,112
  • 6
  • 40
  • 40