I\'m using Android\'s android.graphics.Canvas class to draw a ring. My onDraw method clips the canvas to make a hole for the inner circle, and then draws the full outer circle o
I too had this same problem. I tried using Bitmap masking (xFermode) to fix the Aliasing, but it was heavy.
So for API < 19, I used the Bitmap masking way and for API >= 19, I used Path.Op
. Instead of clipping the path and then drawing the shape. I did a REVERSE_DIFFERENCE
of the path
and the shape
(which is of type Path). You can perform operations on Path from API 19 and above.
Works perfectly for me!