0

I'm looking for a way to move an ImageView with the finger (in any direction) and when the ImageView is moved out of the screen this one disappear and then a new one appear in the middle of the screen.

You know thanks to which library I can do this?

Sam
  • 86,580
  • 20
  • 181
  • 179
kakko76
  • 103
  • 1
  • 3
  • 9

1 Answers1

0

Does it have to be an ImageView?

You can draw a Bitmap on canvas and change its coordinates depending on where the user touches then just check if x < 0 or x > canvas.getWidth() or y < 0 or y > canvas.getHeight()

Here's someone else's example of this: Touch and drag image in android

Community
  • 1
  • 1
corgichu
  • 2,580
  • 3
  • 32
  • 46