I want to disable the control of pinching to zoom in my app. How do I go about setting this?
Asked
Active
Viewed 2,513 times
3
-
Duplicate of this answered [question](http://stackoverflow.com/questions/4626028/how-to-disable-pinch-in-android-mapview). – Robby Pond Feb 04 '11 at 13:15
-
but the question was answered properly... – user590849 Aug 26 '11 at 11:51
2 Answers
2
Disable all Gestures:
mapView.getMap().getUiSettings().setAllGesturesEnabled(false);
Disable just Zoom:
mapView.getMap().getUiSettings().setZoomControlsEnabled(false);

brasofilo
- 25,496
- 15
- 91
- 179

chinni Droid
- 21
- 2
1
mapView = (MapView) findViewById(R.id.mapview);
mapView.setBuiltInZoomControls(false);

Harsh Dev Chandel
- 763
- 5
- 12
-
This didnt help on API lvl 8 (I guess it doesnt help at all?) The user can still zoom the mapView. Only setting clickable to false in the MapView does the job BUT this will prevent any click/tap recognition as it seems... – AgentKnopf Apr 21 '12 at 20:47