Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

change color of drawable android studio

public static Drawable setTint(Drawable d, int color) {
    Drawable wrappedDrawable = DrawableCompat.wrap(d);
    DrawableCompat.setTint(wrappedDrawable, color);
    return wrappedDrawable;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #change #color #drawable #android #studio
ADD COMMENT
Topic
Name
8+5 =