如何将 Listview 项目拖放到另一个 Listview [英] 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|| | |
||_____|| | |
|_______|_______|_______|
我使用 android 平台 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
它可以帮助你.
欢迎所有贡献
这篇关于如何将 Listview 项目拖放到另一个 Listview的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!