可拖动图像按钮 [英] Draggable image button

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

问题描述

我想要做的可拖动图像图标在我的屏幕。我需要这样的东西的形象应该被拖动到任意位置,一旦触摸事件被释放(motionevent.UP)它应该回到原来的位置。我发现拖放,但没有很多样本解释了明确的解决方案,又回到原来的位置。

i'm trying to do draggable image icons in my screen. i need something like image should be dragged to any position and once the touch event is released(motionevent.UP) it should come back to original position. i found many sample for drag and drop but nothing explains the clear solution for coming back to original position.

推荐答案

检查以下职位:

http://codingjunkie.net/android-drag-and-drop-part1 /
http://www.vogella.com/articles/AndroidDragAndDrop/article.html
而且,其他问题:拖拽图像的Andr​​oid 这里

这篇关于可拖动图像按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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