14

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

Maher Abuthraa
  • 17,493
  • 11
  • 81
  • 103
  • 1
    yes can not to support full svg feature in android i find the solution : try to convert your SVG exported to vector with this tool : https://shapeshifter.design/ if it's resolved your problem tell me to make it as a answer – java acm Feb 12 '18 at 19:53
  • 1
    @javaacm The tool you have specified is not showing the image layers. Instead it is showing a blank vector. – Abhinav Saxena Aug 20 '22 at 05:08

1 Answers1

9

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>

Paul LeBeau
  • 97,474
  • 9
  • 154
  • 181