单击地图时不要启动 Google 地图(精简模式)
在精简模式下显示 Google 地图时,单击地图将打开 Google 地图应用程序。要禁用此功能,你必须在 MapView
上调用 setClickable(false)
,例如 :
final MapView mapView = (MapView)view.findViewById(R.id.map);
mapView.setClickable(false);
在精简模式下显示 Google 地图时,单击地图将打开 Google 地图应用程序。要禁用此功能,你必须在 MapView
上调用 setClickable(false)
,例如 :
final MapView mapView = (MapView)view.findViewById(R.id.map);
mapView.setClickable(false);