开发者

drag and drop in android

开发者 https://www.devze.com 2023-02-15 16:34 出处:网络
I have to develop a shuff开发者_Go百科led image puzzle. How to implement drag and drop for that?To start with, create aTableLayout and implement a basic part and

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

精彩评论

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

关注公众号