canvas.drawArc() using Stroke Paint very imprecise
<p>I'm trying to create a thick (~40dp) partitioned circle using the canvas.drawArc() method and a Paint with STROKE set as style.</p>

<p>But this onDraw() implementation</p>

<pre><code>protected void onDraw(Canvas canvas) {
    super.onDraw(canvas);

    Paint p = new Paint(Paint.ANTI_ALIAS_FLAG);
    p.setColor(Color.BLUE);
    p.setStrokeWidth(getResources().getDimension(R.dimen.circle_stroke_width));
    p.setStyle(Paint.Style.STROKE);

    RectF rect = new RectF(
            getWidth()*0.1f,
            getWidth()*0.1f+200,
            getWidth()*0.9f,
            getWidth()*0.9f+200
    );

    canvas.drawArc(rect, 0, 180, false, p);
    canvas.drawArc(rect, 180, 180, false, p);

}
</code></pre>

<p>gives me this result</p>

<p><a href="http://i.stack.imgur.com/ebcl0.png" rel="nofollow">Link to the result picture because I don't have any reputation yet</a></p>

<p>Is there a way to prevent these gaps when connecting multiple arcs using this method?</p>
