InsetDrawable
InsetDrawable is a wrapper drawable in the Android framework that applies padding around another drawable by insetting its drawing area. It holds a reference to a child drawable and four inset values: left, top, right, and bottom. When drawn, it computes a drawing rectangle by reducing the bounds by the insets and delegates rendering to the child within that rectangle. It also forwards state changes and size information to the inner drawable.
Construction and usage: In code, an InsetDrawable is created with a child drawable and the four inset
Behavior and capabilities: The insets effectively reduce the drawable’s drawing area without changing the inner drawable’s
Related concepts: InsetDrawable is related to other drawable wrappers such as LayerDrawable and StateListDrawable, and is