I want to set a Google map fragment inside vertical ScrollView, when I do the map does not zoom vertically, how can I override the touch event listener on
I used the google maps listeners to resolve the scrolling issue of google map inside a scroll view.
googleMap?.setOnCameraMoveStartedListener {
mapView.parent.requestDisallowInterceptTouchEvent(true)
}
googleMap?.setOnCameraIdleListener {
mapView.parent.requestDisallowInterceptTouchEvent(false)
}
By using this when you use start moving maps it disallows parent scrolling and when you stop moving maps then it allows scrolling.