Lines Matching refs:drawable
17 package android.support.v4.graphics.drawable;
21 import android.graphics.drawable.Drawable;
22 import android.graphics.drawable.DrawableContainer;
23 import android.graphics.drawable.GradientDrawable;
26 * Implementation of drawable compatibility that can call L APIs.
30 public static void setHotspot(Drawable drawable, float x, float y) {
31 drawable.setHotspot(x, y);
34 public static void setHotspotBounds(Drawable drawable, int left, int top,
36 drawable.setHotspotBounds( left, top, right, bottom);
39 public static void setTint(Drawable drawable, int tint) {
40 if (drawable instanceof DrawableWrapperLollipop) {
43 DrawableCompatBase.setTint(drawable, tint);
46 drawable.setTint(tint);
50 public static void setTintList(Drawable drawable, ColorStateList tint) {
51 if (drawable instanceof DrawableWrapperLollipop) {
54 DrawableCompatBase.setTintList(drawable, tint);
57 drawable.setTintList(tint);
61 public static void setTintMode(Drawable drawable, PorterDuff.Mode tintMode) {
62 if (drawable instanceof DrawableWrapperLollipop) {
65 DrawableCompatBase.setTintMode(drawable, tintMode);
68 drawable.setTintMode(tintMode);
72 public static Drawable wrapForTinting(Drawable drawable) {
73 if (drawable instanceof GradientDrawable || drawable instanceof DrawableContainer) {
77 return new DrawableWrapperLollipop(drawable);
79 return drawable;