问题
I'm in the middle of migrating one of my app to the Android map V2. I'm showing a marker on the map and don't want to send touch events to the map to change the position/zoom level etc. in the earlier version, i was able to disable touch by setting android:clickable="false"
in the MapView
. how can i do the same thing in the Android map V2?
回答1:
yourmap.getUiSettings().setAllGesturesEnabled(false);
回答2:
Figured it out myself.
mMapFragment.getView().setClickable(false);
来源:https://stackoverflow.com/questions/14873288/android-map-api-2-disable-click