ShapeDrawable

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.

Nested types

Extended in the framework by

Constructors

public ShapeDrawable() source
public ShapeDrawable(Shape s) source

Methods

public Shape getShape() source
public void setShape(Shape s) source
public Paint getPaint() source
public ShaderFactory getShaderFactory() source
public void setShaderFactory(ShaderFactory factory) source
public void setPadding(int left, int top, int right, int bottom) source
public void setPadding(Rect padding) source
public boolean getPadding(Rect out) source
public void setIntrinsicWidth(int width) source
public void setIntrinsicHeight(int height) source
public int getIntrinsicWidth() source
public int getIntrinsicHeight() source
protected void onDraw(Shape shape, Canvas canvas, Paint paint) source
public void draw(Canvas canvas) source
protected void onBoundsChange(Rect bounds) source
public void setAlpha(int alpha) source
public int getAlpha() source
public void setColorFilter(ColorFilter colorFilter) source
public ColorFilter getColorFilter() source
public int getOpacity() source
public void getOutline(Outline outline) 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.