开发者

Working with SVG on Android

I need to develop a small game that should use SVG elements. I know I can use the android svg library. 开发者_Python百科My question is what performance should I expect from this library - is it good enough? Are there any other good libraries I can use?

Thanks


Good enough for what? You need to be more specific. The Android graphics package has native implementation for most (all?) of the SVG primitives, so the only overhead of the library should come from parsing the XML. Drawing/refresh speed will mostly depend on the actual device hardware, so you'll need to benchmark with a specific device in mind.


Try http://code.google.com/p/svg-android/ it was used by google in Androidify and from my experience it is the best solution out there (although it doesn't support the full SVG spec).


There is also AndroidSVG (http://code.google.com/p/androidsvg/) which implements more of the spec than svg-android.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜