You need a custom layout like -
class CircleLayout extends FrameLayout{
...
void onDraw(Canvas canvas){
....
}
}
Now in the onDraw () method, draw a circle with a radius equal to half min (height, width) -
height and width - height and width of Framelayout, respectively,
sayint min= min(height,widht)
radius = min/2
x and y are the center point
canvas.drawCircle(x, y, radius, paint);
, , greenArc redArc
- http://android-coding.blogspot.in/2012/04/draw-arc-on-canvas-canvasdrawarc.html