https://kotlinlang.org logo
#android-studio
Title
# android-studio
z

zsperske

04/14/2021, 5:46 PM
Does anyone know how to programatically convert an SVG file into a vector drawable? I'm trying to automate the process you go through when creating a vector asset with Android Studio.
c

Cicero

04/14/2021, 5:56 PM
You could probably use another tool (some loose script) for this and include it in the android build process
j

Jan Skrasek

04/14/2021, 7:00 PM
this dependency: com.android.tools:sdk-common
Svg2Vector.parseSvgToXml(outFileSvg, outputStream)
2
z

zsperske

04/14/2021, 7:02 PM
awesome thank you!
34 Views