PaintDrawable

Class of android.graphics.drawable · PaintDrawable.java · Android's reference

public class PaintDrawable extends ShapeDrawable

PaintDrawable ← ShapeDrawable ← Drawable

A ShapeDrawable of a color whose corners may be rounded: a rectangle without them, a RoundRectShape with them.

Constructors

public PaintDrawable() empty body source
public PaintDrawable(int color) source

Methods

public void setCornerRadius(float radius) source

The same radius at every corner; 0 or less for square ones.

public void setCornerRadii(float[] radii) source

The corners' radii, x and y of each from the top left clockwise; null for square ones.


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.