I have a horizontal scroll view that contains a hierarchy of viewgroups and then finally a google map. My problem is that the HSV is catching the left-right drag that's meant for the map. I've tried
hsv.requestDisallowInterceptTouchEvent(true);
and even
mapView.getParent().requestDisallowInterceptTouchEvent(true);
but to no avail. Is there anything I'm doing wrong here? Or can you suggest another solution?
I think this should have been my original question: How do I implement the solution posted here Mapview inside a ScrollView. Specifically, where do I put the code?
You have to create custom MapView. Follow the code snippet provided below
In XML follow code below:
try to override the onTouch of the map and always return true from it.
It seems you on the right way, but you should call requestDisallowInterceptTouchEvent(true) method on every touch event (see docs). Try this solution
Updated:
Try this out:
For google map v2, follow the solution is this tutorial