You can create an XML file in the drawable folder. Call it, for example, shape.xml
In shape.xml:
The tag is for your specific question.
Make changes as required.
And in your whatever_layout_name.xml:
This is what I usually do in my apps. Hope this helps....