Disable moving around in mapview

前端 未结 9 802
执念已碎
执念已碎 2020-12-16 11:06

Is it possible to disable moving inside the google map?

9条回答
  •  我在风中等你
    2020-12-16 11:56

    You'll want to setClickable(false), but you'll also probably want to setFocusable(false) in order to prevent the MapView from getting focus.

    That can be a problem when the user uses the hardware navigation buttons, because if the MapView has focus then the up-down-left-right buttons will scroll the map.

提交回复
热议问题