如何将下拉列表视图项目拖放到另一个列表视图 [英] How to Drag drop Listview item to another Listview
问题描述
大家好,我是 Raynast,我是 Android 编程新手现在我的项目中有一个关于 Listview 拖放的小问题
Hi I'm Raynast I'm a newbie for Android Programming Now I have a little problem from my project about Listview Drag and Drop
我决定布局到数据库中的三个 Listview 查询
I decide layout to Three Listview query from database
_________________________
|list_1 |list_2 |list_3 |
|_______|_______|_______|
|_______|_______|_______|
|| ||| ||| ||
||item1|||item5|||item8||
||_____|||_____|||_____||
|_______|_______|_______|
|| ||| ||| ||
||item2|||item6|||item9||
||_____|||_____|||_____||
|_______|_______| |
|| ||| || |
||item3|||item7|| |
||_____|||_____|| |
|_______| | |
|| || | |
||item4|| | |
||_____|| | |
|_______|_______|_______|
我用的是安卓平台2.3.1
I use android platform 2.3.1
我想将 item1 从 Listview1 拖到 liewview2 或 liewview3并在 listviewitem 之间切换
我试图研究解决此问题的解决方案,但没有找到!
I try to research solution to resolve this problem but I'm not found!
观察: MotionEvent 有 action_up action_down 没有 action_right,left
Observations : MotionEvent have action_up action_down don't have action_right,left
我想知道解决这个问题的方法如果不可能,请告诉我或提出另一种方法来进行此活动
I want to know solution to resolve this problem If it not possible tell me or propose another method to make this activity please
提前致谢
您的回复将对我和其他人非常有用
Your response will be very useful for me and another one
推荐答案
你好,我正在 github https://github.com/mtparet/Drag-And-Drop-Android
Hello I'm developing an example of this in github https://github.com/mtparet/Drag-And-Drop-Android
它可以帮助你.
欢迎大家投稿
这篇关于如何将下拉列表视图项目拖放到另一个列表视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!