Custom shape in android using xml
<p>I am trying to draw a custom shape which I can use as a background for my layout. But I am not able to do so. Is it possible to draw a shape as below using xml in android. I am not getting how to cut the semicircle shape from the vertical  centres of rectangle. </p>

<p><a href="https://i.stack.imgur.com/CDJQe.jpg" rel="nofollow"><img src="https://i.stack.imgur.com/CDJQe.jpg" alt="enter image description here"></a></p>