Android Map API-2禁用点击 [英] Android map api-2 disable click
本文介绍了Android Map API-2禁用点击的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在将自己的应用程序之一迁移到Android地图V2.我在地图上显示标记,并且不想将触摸事件发送至地图以更改位置/缩放级别等.在早期版本中,我可以通过在
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?
推荐答案
自己弄清楚了.
mMapFragment.getView().setClickable(false);
这篇关于Android Map API-2禁用点击的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文