to disable drag and drop in MapFragment this code:
googleMap.getUiSettings().setScrollGesturesEnabled(false);
works like @tomrozb. but it does not disable map scaling by touching the map. To do this, use this code next to the code above:
googleMap.getUiSettings().setZoomGesturesEnabled(false);
Mohammad Hadi Dec 04 '17 at 13:55 on 2017-12-04 13:55
source share