Open GoogleCodeExporter opened 8 years ago
Into MainActivity:
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// Create a new ImageView
ImageView imageView = new ImageView(this);
// Set the background color to white
imageView.setBackgroundColor(0xffcccccc);
// Parse the SVG file from the resource
SVG svg = SVGParser.getSVGFromResource(getResources(), R.raw.android);
// Get a drawable from the parsed SVG and set it as the drawable for the ImageView
imageView.setImageDrawable(svg.createPictureDrawable());
// Set the ImageView as the content view for the Activity
setContentView(imageView);
}
Original comment by yan.uniko.102@gmail.com
on 17 May 2015 at 9:32
just use SOFTWARE_LAYER_TYPE on Android >GINGERBREAD_MR1
Original comment by myspotin...@gmail.com
on 18 May 2015 at 6:40
I use Android 4.4, works only on <= 2.3.3?
Original comment by yan.uniko.102@gmail.com
on 18 May 2015 at 6:43
Original issue reported on code.google.com by
yan.uniko.102@gmail.com
on 17 May 2015 at 9:31