How to represent a blueprint with clickable areas in Android
I need a direction how to achieve the following functionality: I have a开发者_StackOverflow blueprint that contains specific zones that can be clicked. I also need the blueprint to be zoomable (respectively the clickable zones). Is it better to use 2D graphics, plain Java code or XML representation, or other method?
Unfortunately, there's no built-in widget or functionality that supports this. You probably have to write custom code to do handle zooming/panning/clickable area resizing. This tutorial might be a good start on that: http://blogs.sonyericsson.com/developerworld/2010/05/18/android-one-finger-zoom-tutorial-part-1/
But you'll have to handle the size modifications on the clickable areas yourself upon zooming.
Maybe consider using OpenGl for this, tho that would be an overkill I think.
精彩评论