I want to create a custom shaped button like this:
I'm able to achieve a similar thing by using a RelativeLayout
and overlapping a rectangle and a circle. But that way, I have to add 2 onClickListaners
, one for each shape.
Is there a way in android ( other than using an image, because in image the entire rectangular view will be clickable and not just the button ) to create such a design using a single XML layout file ??