Is there any lite SVG viewer for Android?


Does android have any support for viewing SVG files or are there any 3rd party SVG viewers for the Android platform?

12/23/2009 9:12:18 PM

Accepted Answer

I use in my application with satisfaction. All my graphic resources are stored in svg format and rendered on the fly.

Now I'm using a fork of the original project:

Simply include the .java files into your project and use them. This fork bring some improvements to the original code.

Obviously you need to code a little to build up your own SVG viewer. But it's very simple:

SVG svg = new SVGBuilder()
            .readFromResource(getResources(), R.raw.someSvgResource)

Drawable drawable = svg.createDrawable();

So all you need it's a ImageView component on your activity.

EDIT 2013-06-08:

I suggest to try also this project:

that has its own SVG parser.

8/6/2013 7:18:57 AM

No native support AFAIK. There's this TinyLine. Haven't actually tried it myself though.

Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow