0

I am making an application that drag and drop images. I need to make the user of the app can move an image from one point to another of the screen, for example He will touch the image and drag it to a point on the screen where there is another image, and when both images are superimposed, a message on screen, how could I do it?

Thanks very much

elvega
  • 73
  • 1
  • 2
  • 6

1 Answers1

0

I think this can help you with the drag and drop

https://www.youtube.com/watch?v=H3qr1yK6u3M

To know image position you need to work with the ontouchevent:

How to get the Touch position in android?

Community
  • 1
  • 1
Joao Jorge
  • 91
  • 6