MapView android:clickable="false" 不起作用?

问题描述 投票:0回答:2
android android-mapview
2个回答
1
投票

如果您使用“com.google.android.gms.maps.MapView”类,这将正常工作

在你的

public void onMapReady(GoogleMap googleMap)

内尝试一下这个
googleMap.getUiSettings().setAllGesturesEnabled(false);

0
投票

尝试在MapView的父布局中设置可点击值。

© www.soinside.com 2019 - 2024. All rights reserved.