在Android中单击之后使标记可拖动 [英] Make marker draggable after single click in Android

查看:89
本文介绍了在Android中单击之后使标记可拖动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Google地图在Android上做一个小项目。而且我有一个问题 - 只要单击它就可以使标记可拖动,而不是长时间按下。例如:我点击标记,它会改变图标,我可以拖动它在地图上的任何地方,然后再次点击后,他不会再拖动并更改其图标? (即使您释放它,标记也必须始终可以从第一个点击到第二个点)。 >

你好,



我知道它应该在评论中,但由于我的名声不太好,我建议你回答。 p>

您想为标记拖放设施东西?

如果有,请提供此处。请检查它。


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)

解决方案

@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.

这篇关于在Android中单击之后使标记可拖动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆