I would like to create the same shape as depicted in Transparent half circle cut out of a div using Android drawables and fill the created circle with a round button, is creating this shape (not the round button) possible? Preferably with drawables and xml only, but I guess using paint and canvas is fine too.
So far I was thinking to use the solution from this post to create a transparent circle at the desired position:
Paint mPaint = new Paint();
mPaint.setColor(0xFFFFFF);
mPaint.setAlpha(0);
mPaint.setAntiAlias(true);
mPaint.setColor(Color.TRANSPARENT);
mPaint.setXfermode(new PorterDuffXfermode(
PorterDuff.Mode.CLEAR));
But can this be done non-programatically?