Why is my SVG failing to load in Vector Asset Studio
Android Studio’s Vector Asset Studio is currently not support all the features of SVG. You can convert SVG to VectorDrawable using this tool. Hope it helps.
Android Studio’s Vector Asset Studio is currently not support all the features of SVG. You can convert SVG to VectorDrawable using this tool. Hope it helps.
In new Android Studio there is possibility to import SVG to XML file, so You don’t need to use external library. In drawable right click -> New -> Vector Asset -> Local SVG file. Then You use it normally as other drawables: android:src=”https://stackoverflow.com/questions/34990236/@drawable/btn_image”
First you need to import SVG files by the following simple steps. Right click on your project’s drawable folder (app/res/drawable) Click New Select Vector Asset If the image is available in your computer then select the local svg file. After that, select the image path. An option to change the size of the image is … Read more