Mass vector assets import Android Studio
Asked Answered
O

3

13

Is there a way to import many vector svg images into project? Importing 30+ icons is kind of boring and rather stupid. Which script is Android Studio using to convert svgs?

Ottilie answered 11/11, 2015 at 21:30 Comment(0)
O
6

Well in case anyone will be interested there are online tool and offline .NET/Mono tool for mass import. The last one is more reliable and flexible. Or we can use shell script.

Ottilie answered 1/12, 2015 at 20:52 Comment(2)
You can use it for simple Vector assets, true. But for more complex images you should prefer the Android Studio implementation for this. I got issues with rotated vectors in the images for the convert from SVG to vector xmls, the result was a wrong produced image.Zed
@KennySeyffarth agreed with you.Erfert
D
7

This is possible in Android studio now. In the resource manager on the left side. Works great!

enter image description here

Darfur answered 19/11, 2021 at 15:45 Comment(1)
You saved my day, I had 20+ SVGs, it would be a pain to import them all one by one :DDorree
O
6

Well in case anyone will be interested there are online tool and offline .NET/Mono tool for mass import. The last one is more reliable and flexible. Or we can use shell script.

Ottilie answered 1/12, 2015 at 20:52 Comment(2)
You can use it for simple Vector assets, true. But for more complex images you should prefer the Android Studio implementation for this. I got issues with rotated vectors in the images for the convert from SVG to vector xmls, the result was a wrong produced image.Zed
@KennySeyffarth agreed with you.Erfert
L
0

Use this link, it's really helpful : https://svg2vector.com/

Just upload all your svg file (you can select multiple files) and download all drawable files. Copy to your Drawable project file and viola!

Loverly answered 20/7, 2020 at 9:36 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.