An additional step that you can add before using svg2android , which runs it through svgo
An example of the pipeline used (note that instead of a web tool I use svg2vectordrawable )
~$ svgo image.svg --config=config -o image.svg.optimized ~$ s2v "image.svg.optimized image.xml
My config file looks like (you can play with it according to your needs):
"plugins": [ { "convertPathData": { "leadingZero": false, "floatPrecision": 2 } } ]
source share