Skip to content

Instantly share code, notes, and snippets.

@JonathandelaSen
Created March 13, 2017 09:27
Show Gist options
  • Save JonathandelaSen/629c6274a1fa9d7ff6f0cad4e83a2e43 to your computer and use it in GitHub Desktop.
Save JonathandelaSen/629c6274a1fa9d7ff6f0cad4e83a2e43 to your computer and use it in GitHub Desktop.
Android Colorize icons
public static void colorize(int color, ImageView... ivs) {
for (ImageView iv : ivs) {
iv.setColorFilter(color, PorterDuff.Mode.SRC_ATOP);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment