Make marker draggable after single click in Android

偶尔善良 提交于 2020-01-14 08:01:08

问题


I am doing a little project on Android with Google maps. And I have one question - it is possible to make marker draggable with single click on it, not after long press. For example: I click marker, it changes icon and I can drag it anywhere in map, and then after another tap he will not be draggable again and changes its icon back? (Marker must be draggable all the time from first tap to second even if you release it)


回答1:


@user2595870:

Hello,

I know it should be in comment but due to less reputations i am suggesting you in answer.

You want to drag and drop facility for marker kind of thing ?

if so there is good example provided here. Please check it.



来源:https://stackoverflow.com/questions/17725835/make-marker-draggable-after-single-click-in-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!