Easiest way to use SVG in Android?

前端 未结 8 996
一个人的身影
一个人的身影 2020-12-02 05:35

I have found a myriad of libraries in order to use svg in Android and avoid the frustrating creation of different resolutions and dropping files for each resolution, this be

8条回答
  •  眼角桃花
    2020-12-02 05:38

    Rather than adding libraries which increases your apk size, I will suggest you to convert Svg to drawable using http://inloop.github.io/svg2android/ . and add vectorDrawables.useSupportLibrary = true in gradle,

提交回复
热议问题