Android的图形页面拖动标记 [英] Android MapView draggable marker

查看:226
本文介绍了Android的图形页面拖动标记的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建Android的图形页面(com.google.android.maps.MapView)可拖动标记,完全是这样的:的 http://koti.mbnet.fi/ojalesa/exam/draggable.html

I would like to create a draggable marker in Android MapView (com.google.android.maps.MapView), exactly like this: http://koti.mbnet.fi/ojalesa/exam/draggable.html.

我已经有了一个覆盖指向我想要的位置,但我想标记图标,可拖动就像上面的例子。有什么准备利用这个还是要落实拖着自己的逻辑?

I've already got an overlay pointing to the location I want, but I'd like the marker icon to be draggable like in the above example. Is there something ready to use for this or is it necessary to implement the dragging logic myself?

推荐答案

您需要实现拖动自己。 这里是展示阻力的下降和示例项目 OverlayItem ItemizedOverlay

You need to implement the dragging yourself. Here is a sample project demonstrating drag and drop of an OverlayItem from an ItemizedOverlay.

这篇关于Android的图形页面拖动标记的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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