BigBadaboom / androidsvg

SVG rendering library for Android
http://bigbadaboom.github.io/androidsvg/
Apache License 2.0
1.2k stars 227 forks source link

How to show vector xml file? #253

Closed Arashvscode closed 2 years ago

Arashvscode commented 2 years ago

Hi, I wanted to know if your library has the ability to display Victor or xml photos from the file dictation path? If you can send me a sample Java code, thank you

BigBadaboom commented 2 years ago

There is no method for loading an SVG directly from a File or path string. but you can load from an InputStream (see SVG.getFromInputStream()). There are other getFromX() methods for loading files from resource directories, the assets folder, and from a string.

AndroidSVG documentation Javadoc

There is also a sample application that you might find useful to look at: https://github.com/BigBadaboom/androidsvgsampleapp

BigBadaboom commented 2 years ago

Closing. Hopefully my answer solved your problem.