java.lang.Object | |
↳ | android.support.v4.graphics.drawable.DrawableCompat |
Helper for accessing features in Drawable
introduced after API level 4 in a backwards compatible fashion.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Tells if this Drawable will be automatically mirrored when its layout
direction is RTL right-to-left.
| |||||||||||
Set whether this Drawable is automatically mirrored when its layout
direction is RTL (right-to left).
| |||||||||||
Specifies the hotspot's location within the drawable.
| |||||||||||
Sets the bounds to which the hotspot is constrained, if they should be
different from the drawable bounds.
| |||||||||||
Specifies a tint for
drawable .
| |||||||||||
Specifies a tint for
drawable as a color state list.
| |||||||||||
Specifies a tint blending mode for
drawable .
| |||||||||||
Unwrap
drawable if it is the result of a call to wrap(Drawable) .
| |||||||||||
Potentially wrap
drawable so that it may be used for tinting across the
different API levels, via the tinting methods in this class.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Tells if this Drawable will be automatically mirrored when its layout
direction is RTL right-to-left. See LayoutDirection
.
If running on a pre-KITKAT
device
this method returns false.
drawable | The Drawable against which to invoke the method. |
---|
Call Drawable.jumpToCurrentState()
.
If running on a pre-HONEYCOMB
device this method does nothing.
drawable | The Drawable against which to invoke the method. |
---|
Set whether this Drawable is automatically mirrored when its layout
direction is RTL (right-to left). See
LayoutDirection
.
If running on a pre-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. |
Specifies the hotspot's location within the drawable.
drawable | The Drawable against which to invoke the method. |
---|---|
x | The X coordinate of the center of the hotspot |
y | The Y coordinate of the center of the hotspot |
Sets the bounds to which the hotspot is constrained, if they should be different from the drawable bounds.
drawable | The Drawable against which to invoke the method. |
---|
Specifies a tint for drawable
.
drawable | The Drawable against which to invoke the method. |
---|---|
tint | Color to use for tinting this drawable |
Specifies a tint for drawable
as a color state list.
drawable | The Drawable against which to invoke the method. |
---|---|
tint | Color state list to use for tinting this drawable, or null to clear the tint |
Specifies a tint blending mode for drawable
.
drawable | The Drawable against which to invoke the method. |
---|---|
tintMode | A Porter-Duff blending mode |
Unwrap drawable
if it is the result of a call to wrap(Drawable)
. If
the drawable
is not the result of a call to wrap(Drawable)
then
drawable
is returned as-is.
drawable | The drawable to unwrap |
---|
Drawable
or drawable
if it hasn't been wrapped.Potentially wrap drawable
so that it may be used for tinting across the
different API levels, via the tinting methods in this class.
If you need to get hold of the original Drawable
again,
you can use the value returned from unwrap(Drawable)
.
drawable | The Drawable to process |
---|