hi everybody I have a custom view that in it I use clippath for clip a circle this is my code
Bitmap bitmap=Bitmap.createBitmap(min,min,Bitmap.Config.ARGB_8888);
Canvas c = new Canvas(bitmap);
Paint paint = new Paint();
paint.setStrokeWidth(2);
paint.setAntiAlias(true);
paint.setStyle(Paint.Style.FILL);
Path path2=new Path();
path2.addCircle(x0, y0,r2,Path.Direction.CCW);
c.clipPath(path2,Region.Op.DIFFERENCE);
paint.setColor(0xFF09103e);
c.drawCircle(x0,y0,r1,paint);
my problem is that when i draw my circle it isnt smooth in edges of its inside where it cliped by other circle.