I know it is possible to make a shape looking something like this:
But I don\'
Refer this doc for details and you need to use Layer List.
Here is the code as per your image:
custom_layer_list.xml
topCircular.xml
rect.xml