Can any one help me with the code to draw this shape in xml
CodePudding user response:
You can create your own shape using https://editor.method.ac/ and save as a Image, so you can get a SVG file as a output.
After creating your shape as a SVG, you can add this SVG as a Vector Asset in you android app drawable folder from app->New->Vector Asset
In opened dialog for vector asset set the below detail and create xml for svg.
Asset Type : Local file
Name : your desired xml file name
Path : SVG file path
So now you can use this xml in your code.
CodePudding user response:
I would recommend you to use a tool called vector magic to convert all type of images to svg because android studio does not accept some tags used by other converters