Set tint
suggest changeSet a tinting color for the image. By default, the tint will blend using SRC_ATOP
mode.
set tint using XML attribute:
android:tint="#009c38"
Note: Must be a color value, in the form of "#rgb"
, "#argb"
, "#rrggbb"
, or "#aarrggbb"
.
set tint programmatically:
imgExample.setColorFilter(Color.argb(255, 0, 156, 38));
and you can clear this color filter:
imgExample.clearColorFilter();
Example:
![](/essential/android/img/6b71e52a22d20ed34fd0d4ece7d9879acabe90ae.png)
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents