Displaying SVG files in Android

前端 未结 4 600
-上瘾入骨i
-上瘾入骨i 2021-01-31 17:56

I want to create an app that will display position on some floor plan. Navigation is implementing via WiFi in certain way, I\'ve done it and so now I have a problem of displayin

4条回答
  •  野的像风
    2021-01-31 18:48

    I would suggest using #1. Don't write your own parser. It's just going to be a huge headache.

    How detailed does your floor plan have to be? android-svg supports SVG fairly well. It just doesn't have great support for filters or light sources. Your SVG isn't going to have those in them (I hope).

    If you don't want to do that, look into quad trees. You can render out a huge image and break that down into a quadtree like format then only load the quads you require.

提交回复
热议问题