Android layout - how to draw a hole in a rectangle

I need to create a rounded rectangle with a semi-circular section cut out of the bottom of it - how do I go about this? Sorry for the extremely open ended question - I just have no idea where to start looking to figure it out.



You can use PorterDuffXfermodes...

Paint clear = new Paint(Paint.ANTI_ALIAS_FLAG);
clear.setXfermode(new PorterDuffXfermode(Mode.CLEAR));

Then just draw with this paint.

And for the semi circular thing, check out canvas.drawArc() and pathes.

Need Your Help

Save changes of textbox.text using entity in .net forms


So I'm trying to update a row in a database using the text from a textbox using .net forms.

access element component silverlight

c# silverlight xaml code-behind

I'm developing a player based on Silverlight 5 on MVVM pattern. I'm trying to change status buttons in code behind.