fuycadw / svg-android

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

SVG conversion failed (?) #36

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Import a SVG image (drawn with inkscape)using the svg-android as described 
in the tutorial: http://code.google.com/p/svg-android/wiki/Tutorial
2. Draw it on the screen

What is the expected output? What do you see instead?
Expected output: The image has been drawn
What I see instead: nothing - only the action bar!

What version of the product are you using? On what operating system?
svg-android: 1.1
android: v.3.2 (on a tablet)
         v.4.1 (on an emulator)
Please provide any additional information below.
I tried to draw the image with the Canvas and tge ImageView both.

Attached: source code

Original issue reported on code.google.com by gikbu...@gmail.com on 23 Jul 2012 at 3:54

Attachments:

GoogleCodeExporter commented 9 years ago
I have what seems to be the same problem. I followed the exact steps of the 
tutorial and even used the same android.svg as them. But just a blank view 
appears. I can change the background color of the imageView and it shows up, 
but there is nothing drawn on top of that background.

Original comment by gschier1...@gmail.com on 21 Sep 2012 at 3:23

GoogleCodeExporter commented 9 years ago
Just found a comment in another issue that helped. Apparently it doesn't work 
in JellyBean with hardware accelerated rendering. Just call 
imageView.setLayerType(View.LAYER_TYPE_SOFTWARE, null) before you draw it.

source: https://code.google.com/p/svg-android/issues/detail?id=37

Original comment by gschier1...@gmail.com on 21 Sep 2012 at 3:26