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.
public PaintDrawable() empty body sourcepublic PaintDrawable(int color) sourcepublic void setCornerRadius(float radius) sourceThe same radius at every corner; 0 or less for square ones.
public void setCornerRadii(float[] radii) sourceThe 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.