|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectandroid.support.v4.graphics.drawable.DrawableCompat
public class DrawableCompat
Helper for accessing features in Drawable
introduced after API level 4 in a backwards compatible fashion.
| Constructor Summary | |
|---|---|
DrawableCompat()
|
|
| Method Summary | |
|---|---|
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. |
static void |
jumpToCurrentState(android.graphics.drawable.Drawable drawable)
Call Drawable.jumpToCurrentState(). |
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). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DrawableCompat()
| Method Detail |
|---|
public static void jumpToCurrentState(android.graphics.drawable.Drawable drawable)
Drawable.jumpToCurrentState().
If running on a pre-android.os.Build.VERSION_CODES#HONEYCOMB
device this method does nothing.
drawable - The Drawable against which to invoke the method.
public static void setAutoMirrored(android.graphics.drawable.Drawable drawable,
boolean mirrored)
LayoutDirection.
If running on a pre-android.os.Build.VERSION_CODES#KITKAT device
this method does nothing.
drawable - The Drawable against which to invoke the method.mirrored - Set to true if the Drawable should be mirrored, false if
not.public static boolean isAutoMirrored(android.graphics.drawable.Drawable drawable)
LayoutDirection.
If running on a pre-android.os.Build.VERSION_CODES#KITKAT device
this method returns false.
drawable - The Drawable against which to invoke the method.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||