Is it possible to create a Drawable
object from an SVG file in code? I'm aware of the functionality in Android Studio where you can upload an SVG file, and it will create a new XML drawable resource file from that which can be displayed in your app. But, I need to do this conversion at runtime, as I will be getting SVG files from a server via network requests.
Asked
Active
Viewed 2,323 times
3

freezefry
- 138
- 4
- 21
-
There are several SVG rendering libraries in [the Android Arsenal](https://android-arsenal.com/tag/96?sort=updated). – CommonsWare Dec 11 '19 at 22:53
-
I think you can use android Webview to display SVGs. – xaif Dec 11 '19 at 23:13