开发者

drag and drop in android

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜