I know android studio doesn't support all elements in SVG.
So far I know that:
<defs>
<stop>
<use>
<linearGradient>
are not supported yet.
Here is reference to svg element https://developer.mozilla.org/en-US/docs/Web/SVG/Element
Android Studio includes a tool called Vector Asset Studio that helps you add material icons and import Scalable Vector Graphic (SVG) and Adobe Photoshop Document (PSD) files into your project as vector drawable resources.
You can import an SVG file as a VectorDrawable in Android Studio, follow these steps : "Right-click" on the res folder and select new > Vector Asset. Select the Local File option and browse to your . svg file.
android-svg supports SVG fairly well. It just doesn't have great support for filters or light sources.
The source code for the converter is here: SVG2Vector.java
From that you can see that, as of now, the following elements are supported (to some extent at least):
<polygon>
, <rect>
, <circle>
, <line>
, <path>
, <g>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With