Issue
I am using Android Studio 2.0 and am targeting SDK verion 21 which supports vector images.
I add the .svg file from New->Vector Asset and it generates a drawable from it (.xml).
The problem is that when i change the .svg (in a vector graphics editor) then the .xml is not automatically updated inside the Studio. How to make it automatically update the generated .xml files if the .svg changes?
Regards!
Solution
The simple answer is: you can't.
There's no official way to auto-generate and I never found any 3rd party tool to automatic do the conversion.
But there're several other tools for such conversion that might be easier than using Android Studio.:
- Sketch plugin to export directly to XML: https://github.com/jacobmoncur/SketchVectorDrawable
- Online converter and offline batch converter: https://github.com/a-student/SvgToVectorDrawableConverter
- IntelliJ plugin: https://github.com/misakuo/svgtoandroid/blob/master/readme_en.md
Answered By - Budius
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.