I have to develop a shuff开发者_Go百科led image puzzle. How to implement drag and drop for that?
To start with, create a TableLayout and implement a basic part and you can find documentation for the Drag and Drop implementations in Android.
http://developer.android.com/guide/topics/ui/drag-drop.html
You basically have to listen in on the motion events of your objects and handle the events when the dragged object enters a target area.
I made a simple example using Monodroid. You can check it out here.
精彩评论