abol6814 / svg-android

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

Not working on 4.2.2 #48

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Trying to show svg image on android 4.2.2

What is the expected output? What do you see instead?
I see image on older androids, but not on 4.2.2

Original issue reported on code.google.com by drin...@gmail.com on 11 Mar 2013 at 3:08

GoogleCodeExporter commented 8 years ago
You need to disable hardware acceleration.  Add the following:

if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
        // Disable hardware acceleration
        imageView.setLayerType(View.LAYER_TYPE_SOFTWARE, null);
}

Original comment by efroh...@gmail.com on 17 Mar 2013 at 1:56

GoogleCodeExporter commented 8 years ago
Working! Thanks a lot!

Original comment by drin...@gmail.com on 17 Mar 2013 at 10:41

GoogleCodeExporter commented 8 years ago
It worked for me. Thank you

Original comment by cdroch...@gmail.com on 26 Jul 2013 at 2:16