I am trying to find a way to make arc of the ring. There are the same question, but it was about full ring:
How to draw a ring using canvas in android?
But what do you think how can we make it more abstract?
Now I have something for
r1 as outside radius and
r2 as inside radius;
y as the center of the arc;
end angles as is.
canvas.drawArc(new RectF(x-r1, y-r1, x+r1, y+r1), start, end, true, paint);
It makes figure with extra lines from the center, and I don't know how to remove it. I provided the result with indifferent background just to make you see the bounds of canvas and transparency inside the figure.