Example usage for Java android.graphics.drawable InsetDrawable fields, constructors, methods, implement or subclass
The text is from its open source code.
InsetDrawable(@Nullable Drawable drawable, int insetLeft, int insetTop, int insetRight, int insetBottom) Creates a new inset drawable with the specified insets in pixels. | |
InsetDrawable(@Nullable Drawable drawable, float insetLeftFraction, float insetTopFraction, float insetRightFraction, float insetBottomFraction) Creates a new inset drawable with the specified insets in fraction of the view bounds. | |
InsetDrawable(@Nullable Drawable drawable, int inset) Creates a new inset drawable with the specified inset. | |
InsetDrawable(@Nullable Drawable drawable, float inset) Creates a new inset drawable with the specified inset. | |
InsetDrawable(@NonNull InsetState state, @Nullable Resources res) The one constructor to rule them all. |
Drawable | getDrawable() |
int | getIntrinsicHeight() |
int | getIntrinsicWidth() |
boolean | getPadding(Rect padding) |