Added in API level 1

ArcShape


public class ArcShape
extends RectShape

java.lang.Object
   ↳ android.graphics.drawable.shapes.Shape
     ↳ android.graphics.drawable.shapes.RectShape
       ↳ android.graphics.drawable.shapes.ArcShape


Creates an arc shape. The arc shape starts at a specified angle and sweeps clockwise, drawing slices of pie.

The arc can be drawn to a Canvas with its own draw(Canvas,Paint) method, but more graphical control is available if you instead pass the ArcShape to a ShapeDrawable.

Summary

Public constructors

ArcShape(float startAngle, float sweepAngle)

ArcShape constructor.

Public methods

ArcShape clone()

Creates and returns a copy of this object.

void draw(Canvas canvas, Paint paint)

Draws this