public class DrawableLayoutDirectionHelper extends Object
Constructor and Description |
---|
DrawableLayoutDirectionHelper() |
Modifier and Type | Method and Description |
---|---|
static InsetDrawable |
createRelativeInsetDrawable(Drawable drawable,
int insetStart,
int insetTop,
int insetEnd,
int insetBottom,
Context context)
Creates an
InsetDrawable according to the layout direction
of context . |
static InsetDrawable |
createRelativeInsetDrawable(Drawable drawable,
int insetStart,
int insetTop,
int insetEnd,
int insetBottom,
int layoutDirection)
Creates an
InsetDrawable according to
layoutDirection . |
static InsetDrawable |
createRelativeInsetDrawable(Drawable drawable,
int insetStart,
int insetTop,
int insetEnd,
int insetBottom,
View view)
Creates an
InsetDrawable according to the layout direction
of view . |
public static InsetDrawable createRelativeInsetDrawable(Drawable drawable, int insetStart, int insetTop, int insetEnd, int insetBottom, View view)
InsetDrawable
according to the layout direction
of view
.public static InsetDrawable createRelativeInsetDrawable(Drawable drawable, int insetStart, int insetTop, int insetEnd, int insetBottom, Context context)
InsetDrawable
according to the layout direction
of context
.public static InsetDrawable createRelativeInsetDrawable(Drawable drawable, int insetStart, int insetTop, int insetEnd, int insetBottom, int layoutDirection)
InsetDrawable
according to
layoutDirection
.