I'm trying to use this library http://code.google.com/p/svg-android/ to get SVGs into android.
Here's my code so far:
public class main extends Activity {
/** Called when the activity is first created. */
ImageView iv;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
iv = (ImageView)findViewById(R.id.imageView1);
SVG svg = SVGParser.getSVGFromResource(getResources(), R.raw.android);
iv.setImageDrawable(svg.createPictureDrawable());
}
}
And it does draw the SVGpretty good. But I couldn't find a way how to scale it, for example if I want it to be, say, 100 by 100 px?
Any ideas?