InsetDrawable

Class of android.graphics.drawable · InsetDrawable.java · Android's reference

public class InsetDrawable extends DrawableWrapper

InsetDrawable ← DrawableWrapper ← Drawable

A drawable drawn inside its bounds, inset by fixed distances.

Constructors

public InsetDrawable(Drawable drawable, int inset) source
public InsetDrawable(Drawable drawable, float inset) source
public InsetDrawable(Drawable drawable, int insetLeft, int insetTop, int insetRight, int insetBottom) source

Methods

public void inflate(android.content.res.Resources r, org.xmlpull.v1.XmlPullParser parser, android.util.AttributeSet attrs, android.content.res.Resources.Theme theme) throws org.xmlpull.v1.XmlPullParserException, java.io.IOException source

an inset: its drawable (the attribute or a child element) and its insets, each side's over the overall one

public void draw(Canvas canvas) source
public Drawable getDrawable() source
public ConstantState getConstantState() source

a resource's, else one of a copy of the inset drawable with the same insets (none without the child's)

protected void onBoundsChange(Rect bounds) source
public boolean getPadding(Rect padding) source
public Insets getOpticalInsets() source
public int getIntrinsicWidth() source
public int getIntrinsicHeight() source

Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.