Lines Matching refs:drawable
17 package android.support.v4.graphics.drawable;
21 import android.graphics.drawable.Drawable;
24 * Base implementation of drawable compatibility.
28 public static void setTint(Drawable drawable, int tint) {
29 if (drawable instanceof DrawableWrapper) {
30 ((DrawableWrapper) drawable).setTint(tint);
34 public static void setTintList(Drawable drawable, ColorStateList tint) {
35 if (drawable instanceof DrawableWrapper) {
36 ((DrawableWrapper) drawable).setTintList(tint);
40 public static void setTintMode(Drawable drawable, PorterDuff.Mode tintMode) {
41 if (drawable instanceof DrawableWrapper) {
42 ((DrawableWrapper) drawable).setTintMode(tintMode);
46 public static Drawable wrapForTinting(Drawable drawable) {
47 if (!(drawable instanceof DrawableWrapperDonut)) {
48 return new DrawableWrapperDonut(drawable);
50 return drawable;