I’m trying to fix a current Location on my MapView in Android, but still want to handle the onTouch Event.
Background: I’ve some buttons beside my mapView. If i chosoe “move”, the normal behaviour of the mapView is required.
If i choose another button, the current map should be locked, so i can draw something on the map. Therefore i need the onTouch-Event of the map…
my only solution to fix the mapView is to setClickable to false… but when i do this, the onTouch Event will no longer be supported…
How can i make it happen?
Sorry for my bad englisch,
daniel
To avoid having
MapViewprocessing motion events, don´t callsuper.dispatchTouchEvent()and return true;Example code:
Regards.