Class of android.graphics.drawable.shapes · Shape.java · Android's reference
public abstract class Shape implements Cloneable
A geometric shape, sized by resize and drawn at the origin.
public Shape() empty body sourcepublic final float getWidth() sourcepublic final float getHeight() sourcepublic abstract void draw(Canvas canvas, Paint paint) sourcepublic final void resize(float width, float height) sourcepublic boolean hasAlpha() sourceprotected void onResize(float width, float height) empty body sourcepublic void getOutline(Outline outline) empty body sourcepublic Shape clone() throws CloneNotSupportedException 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.