是否可以检测 SupportMapFragment 的 OnScrollGesture 监听器。这是我一段时间前尝试解决但找不到解决方案的问题。我正在尝试检测用户是否滚动。我不想检查相机更新或位置更改。我假设如果没有解决方案,我将不得不检查相机位置是否等于当前位置。有没有简单的解决方案?
我知道您可以禁用滚动手势。
googleMap.getUiSettings().setScrollGesturesEnabled(false);
最佳答案
您可以找到您可以在 GoogleMap 实例上设置的所有监听器 here in the documentation
我假设您可以使用 OnCameraChangeListener,因为当用户滚动时,相机会更新。
GoogleMap.OnCameraChangeListener
Defines signatures for methods that are called when the camera changes position.
关于android - SupportMapFragment 滚动手势监听器?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29662214/