enter image description here

On the left, a drawing is a circle using onDraw and drawing in a Canvas through drawCircle.

And on the right a circle that created through drawable circle.xml.

Is it possible to make the circle on the left to be the same as on the right?

If I can throw off the code

    1 answer 1

    So, add a flag to paint, with which you draw:

    Paint paint = new Paint(Paint.ANTI_ALIAS_FLAG); 

    Or so:

      paint.setAntiAlias(true);