Issue
I have an app with a ViewSwitcher that has a MapView (v1) and another View and using a GestureDetector I can detect double taps and switch between the 2 views.
Now I'm trying to switch the app to the new Google Maps Android API V2 and I have the problem that the GestureDetector set on the MapView no longer reacts to double taps, instead the map is zooming in. Does anyone know how to change that behaviour?
I'm working with the raw MapView class, not the Map fragment.
Solution
Okay, I found a way now. I have to create a sub class of MapView (which is actually a ViewGroup) and implement interceptTouchEvent() there to detect and catch double taps.
How this is implemented in detail is explained here: Double Tap -> Zoom on Android MapView?
Answered By - Ridcully
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.