Android map api-2 disable click

I am in the middle of migrating one of my apps to an Android V2 card. I am showing a marker on the map and I don't want to send touch events to the map to change the position / zoom level etc. In an earlier version, I was able to disable touch mode by setting android:clickable="false"

to MapView

. how can i do the same on android v2 map?

+3


source to share


2 answers


I thought it myself.



mMapFragment.getView().setClickable(false);

      

+15


source


yourmap.getUiSettings().setAllGesturesEnabled(false);

      



+20


source







All Articles