javascript - Floor-plan in Android and svg -


i want show simple custom floor-plan in android app, similar image below:

image1

the target colour area in (i info in app):

image2

it perfect if each of these areas clickable set onclicklistener or similar , able zoom in/out images.

the main restriction want local, is, no connection internet service import image.

i have tried loading html contains svg floor-plan, don't know how change colour of area android when move 1 area another.

how can approach this?

you can create simple html page within webview , attach svg , add javascript, when tapping on elements in svg call javascript function. can sent events native java code in android app if app native or handle in html.

i believe article question interfacing svg


Comments

Popular posts from this blog

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -