开发者

Working with SVG on Android

开发者 https://www.devze.com 2023-03-31 05:05 出处:网络
I need to develop a small game that should use SVG elements. I know I can use the android svg library.

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

精彩评论

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