ShapeDrawable
ShapeDrawable is a lightweight drawable implementation in Android that renders geometric shapes defined by a Shape object. It belongs to the android.graphics.drawable package and draws by delegating rendering to the Shape within the drawable’s bounds. This makes it possible to create colored, rounded, or otherwise simple shapes at runtime without bitmap resources.
Construction and customization: You create a ShapeDrawable by supplying a Shape instance, such as RectShape, OvalShape,
Sizing, padding, and bounds: ShapeDrawable uses its bounds to determine where to draw the shape. Padding can
Usage: ShapeDrawable can be used as a background or foreground for views, or as a standalone drawable
See also: Drawable, Shape, RectShape, OvalShape, RoundRectShape.