I know it is possible to make a shape looking something like this:
But I don't know how to start with it. Can I make it as a shape? or do I have to do something else?
BR
I know it is possible to make a shape looking something like this:
But I don't know how to start with it. Can I make it as a shape? or do I have to do something else?
BR
You can define it in xml in a shapes file, but it may be a lot easier to make a simple 9 patch graphic, then you can easily customise how and where the curved and straight segments will be stretched.
See http://developer.android.com/tools/help/draw9patch.html for more info
EDIT
For more info on shapes see here: http://developer.android.com/guide/topics/resources/drawable-resource.html#Shape
Oh look at that, I was wrong - gradients are not a problem:
For more on gradient fills look here: How to fill a Path in Android with a linear gradient?
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
You can do it only with shape: