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.
public InsetDrawable(Drawable drawable, int inset) sourcepublic InsetDrawable(Drawable drawable, float inset) sourcepublic InsetDrawable(Drawable drawable, int insetLeft, int insetTop, int insetRight, int insetBottom) sourcepublic 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 sourcean inset: its drawable (the attribute or a child element) and its insets, each side's over the overall one
public void draw(Canvas canvas) sourcepublic Drawable getDrawable() sourcepublic ConstantState getConstantState() sourcea 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) sourcepublic boolean getPadding(Rect padding) sourcepublic Insets getOpticalInsets() sourcepublic int getIntrinsicWidth() sourcepublic int getIntrinsicHeight() sourceMade 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.