Class of android.graphics.drawable · ShapeDrawable.java · Android's reference
public class ShapeDrawable extends Drawable
ShapeDrawable ← Drawable
A Shape drawn with a paint into the bounds. Without a shape, the bounds are filled.
public ShapeDrawable() sourcepublic ShapeDrawable(Shape s) sourcepublic Shape getShape() sourcepublic void setShape(Shape s) sourcepublic Paint getPaint() sourcepublic ShaderFactory getShaderFactory() sourcepublic void setShaderFactory(ShaderFactory factory) sourcepublic void setPadding(int left, int top, int right, int bottom) sourcepublic void setPadding(Rect padding) sourcepublic boolean getPadding(Rect out) sourcepublic void setIntrinsicWidth(int width) sourcepublic void setIntrinsicHeight(int height) sourcepublic int getIntrinsicWidth() sourcepublic int getIntrinsicHeight() sourceprotected void onDraw(Shape shape, Canvas canvas, Paint paint) sourcepublic void draw(Canvas canvas) sourceprotected void onBoundsChange(Rect bounds) sourcepublic void setAlpha(int alpha) sourcepublic int getAlpha() sourcepublic void setColorFilter(ColorFilter colorFilter) sourcepublic ColorFilter getColorFilter() sourcepublic int getOpacity() sourcepublic void getOutline(Outline outline) 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.