baiwyc119 / svg-android

Automatically exported from code.google.com/p/svg-android
0 stars 0 forks source link

Inkscape Plain SVG with gradient causes force close #17

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a simple object with a gradient in Inkscape.
2. Create a simple object with a solid fill on the same layer.
3. Save it as SVG Plain.
4. Import the file into the res/raw folder of the tutorial project.
5. Run to see a black activity view and then a force close message.
6. Edit the SVG file in a text editor and remove the defs tag with the gradient 
declaration and the offending simple object associated with the gradient.
7. Run again to see a white activity view with the solid fill object rendered 
A-OK.

What is the expected output? What do you see instead?
I'm not sure how Inkscape creates their gradients tag-wise, but I would expect 
that a simple gradient would work (the sample images indicate that gradients 
work). Instead the app force closes after a brief view of a black activity view 
/ screen.

What version of the product are you using? On what operating system?
I am using svg-android 1.1 and Android 2.3.5 on a T-Mobile Samsung Galaxy S 2. 
I am using Android API level 10 (2.3.3) for development.

Please provide any additional information below.
Would it be possible to provide the svg files for the sample images for 
comparison? I'd like to troubleshoot which tags are causing all this trouble.

The attached square.svg image will cause the issue, removing the defs tag and 
the two rectangles with gradients will resolve the issue.

Original issue reported on code.google.com by J.Clay.W...@gmail.com on 8 Dec 2011 at 3:42

Attachments: