Having issue on Real Device using vector image in android. SVG-android

后端 未结 2 1243
甜味超标
甜味超标 2020-11-29 23:57

I use svg-android.jar from https://github.com/pents90/svg-android at its work fine but only on emulator devices in eclipse. Agrrrr. On real devices

2条回答
  •  夕颜
    夕颜 (楼主)
    2020-11-30 00:50

    On newer devices that have hardware rendering turned on by default, you need to explicitly turn on software rendering.

    imgView.setLayerType(View.LAYER_TYPE_SOFTWARE, null);
    

    I suspect this is probably your problem.

提交回复
热议问题