I have tried to create rectangle like this, in xml with shape but no luck, is this possible or how to transparent this image, I mean it’s color want to transparent like we define color for any shape with alpha then we get transparency, is there any way for 1 of this?
Thanks

I was able to do this by making the color of the clipped region (a circle in my case) same to the background color.
float[] outerR = new float[] { 12, 12, 12, 12, 0, 0, 0, 0 };
float[] circleR = new float[] { 50, 50, 50, 50, 50, 50, 50, 50 };
And in onDraw: