问题
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