Reputation: 1063
Are there online tools to convert png file to vector drawable files (xml in Android)?
I have few pngs that I was using for icons & various places in my app. So, now I want to convert them to xmls. Is it possible to do so?
Upvotes: 47
Views: 73812
Reputation: 1278
Ok, so you can convert PNG to Android vector drawable following these steps
Or you can use any online converter of your choice
http://a-student.github.io/SvgToVectorDrawableConverter.Web/
Alternatively you can also use Android studio to generate Vector drawables from SVG generated in Step 1.
This will open up the Android studio Vector asset generator. Select a local SVG file (the one you generated online)
You can also refer to this post https://stackoverflow.com/a/35402459/6142219
Upvotes: 94