Methods Summary |
---|
public static boolean | isAutoMirrored(android.graphics.drawable.Drawable drawable)Tells if this Drawable will be automatically mirrored when its layout
direction is RTL right-to-left. See {@link android.util.LayoutDirection}.
If running on a pre-{@link android.os.Build.VERSION_CODES#KITKAT} device
this method returns false.
return IMPL.isAutoMirrored(drawable);
|
public static void | jumpToCurrentState(android.graphics.drawable.Drawable drawable)Call {@link Drawable#jumpToCurrentState() Drawable.jumpToCurrentState()}.
If running on a pre-{@link android.os.Build.VERSION_CODES#HONEYCOMB}
device this method does nothing.
final int version = android.os.Build.VERSION.SDK_INT;
if (version >= 21) {
IMPL = new LDrawableImpl();
} else if (version >= 19) {
IMPL = new KitKatDrawableImpl();
} else if (version >= 11) {
IMPL = new HoneycombDrawableImpl();
} else {
IMPL = new BaseDrawableImpl();
}
IMPL.jumpToCurrentState(drawable);
|
public static void | setAutoMirrored(android.graphics.drawable.Drawable drawable, boolean mirrored)Set whether this Drawable is automatically mirrored when its layout
direction is RTL (right-to left). See
{@link android.util.LayoutDirection}.
If running on a pre-{@link android.os.Build.VERSION_CODES#KITKAT} device
this method does nothing.
IMPL.setAutoMirrored(drawable, mirrored);
|
public static void | setHotspot(android.graphics.drawable.Drawable drawable, float x, float y)Specifies the hotspot's location within the drawable.
IMPL.setHotspot(drawable, x, y);
|
public static void | setHotspotBounds(android.graphics.drawable.Drawable drawable, int left, int top, int right, int bottom)Sets the bounds to which the hotspot is constrained, if they should be
different from the drawable bounds.
IMPL.setHotspotBounds(drawable, left, top, right, bottom);
|
public static void | setTint(android.graphics.drawable.Drawable drawable, int tint)Specifies a tint for {@code drawable}.
IMPL.setTint(drawable, tint);
|
public static void | setTintList(android.graphics.drawable.Drawable drawable, android.content.res.ColorStateList tint)Specifies a tint for {@code drawable} as a color state list.
IMPL.setTintList(drawable, tint);
|
public static void | setTintMode(android.graphics.drawable.Drawable drawable, PorterDuff.Mode tintMode)Specifies a tint blending mode for {@code drawable}.
IMPL.setTintMode(drawable, tintMode);
|