SVG Parser

You must Login before you can answer or comment on any questions.

Hi,

I need a little asistance, I try use svg in Android, but that not have support or I not encountered a example, not in base64...

...
var img =   'data:logo.png;base64, Text';
var index = img.indexOf('base64,');
img = img.substring(index + 'base64,'.length);
 
var imageView = Ti.UI.createImageView({
image: Ti.Utils.base64decode(img),
...
});
...
In native java... using the next
SVG svg = SVGParser.getSVGFromResource(getResources(), R.raw.filename);
    Picture picture = svg.getPicture();
    Drawable drawable = svg.createPictureDrawable();
Exist something similar for Titanium Android?

1 Answer

Your Answer

This question has been locked and cannot accept new answers.