SVG to Android Shape [closed]

和自甴很熟 提交于 2019-11-27 10:25:36
dgmltn

Another non-GPL'd library (this one is Apache License 2.0), the one used in Google's Androidify app: svg-android

https://github.com/pents90/svg-android

Well, not exactly. But I do have ported libsvg to android, which enables you to load SVG files and plot them to a Canvas.

Please check out:

https://launchpad.net/libsvg-android

The closest thing that I could find was svg4mobile.

While I don't believe that it does transformations to Drawables XML, it does read the svg and make the appropriate calls to the Drawable classes.

Besides the 2 GPL libraries mentioned, there is a commercial library called TinyLine that implements the SVG Tiny subset, which although more limited may be a better licensing choice, if you want to create a non-GPL'd application.

Currently some people including me work on it independently.
You may find working solution in these articles:
  Android. ImageView with SVG Support.
  Android ImageView and Drawable with SVG support

The great AndEngine has an extension for loading SVG and rasterizing it into the texture with any resolution, with color replacement and other great features. Really works. For example you can try a free game by engine author.

Note: The engine best suited for full-screen 2D games and is based on OpenGL 2 view. LGPL

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!