0

I need to implement a program to join an image from one column to other column. I need do the next: link: http://imageshack.us/a/img217/6163/exampleoz.png

I have tried with drag and drop (android developers drag and drop) but it isn't what I need because with drag and drop you move the image from one location to another and I don't want to move anything. I want that when you press one image on the screen, without lifting the finger, and then you move your finger to other image and lift the finger, the two images are matched.

Thank you!!!!!!!!!!!!!!!

4

1 回答 1

0

In onTouchEvent() :

On ACTION_DOWN store first position (event.getX(), event.getY())

On ACTION_UP store second position.

Draw a line between those 2 points.

于 2012-09-17T14:57:16.683 回答