Android: Using drawArc() with different arc sizes with all the same center
<p>I am trying to draw a pie chart in a slightly different way than the conventional way. The pie has equal pieces no matter what, but then each piece's radius is different. So all the arcs are still centered at one point but have different radiuses.</p>

<p>Here is the simplified code for it.</p>

<pre><code>rect1 = new RectF(0,0,8,8)
rect2 = new RectF(0,0,6,6)
rect3 = new RectF(0,0,4,4)
rect4 = new RectF(0,0,2,2)

canvas.drawArc(rect1,0,90,true, paint)
canvas.drawArc(rect2,90,90,true, paint)
canvas.drawArc(rect3,180,90,true, paint)
canvas.drawArc(rect4,270,90,true, paint)
</code></pre>

<p>This creates all the correct arcs, but the point of all the arcs are not centered at the same place. I understand that this is because of how the RectF class works. </p>

<p>So my question is, can I line up these different Arcs in the center of the canvas? Is there an arc offset somewhere that I can use to do this? </p>

<p>I tried <a href="http://stackoverflow.com/questions/3874424/android-looking-for-a-drawarc-method-with-inner-outer-radius">this solution</a> with paint, but was unsuccessful. Any suggestions would be helpful!</p>
