1

I have a bitmap image that moves along a path, all I want is to be able to retrieve the x and y of the bitmap while it moving along the path.

thanks

Ofcourse
  • 617
  • 1
  • 7
  • 19

1 Answers1

0

edit

I think you mean ImageView instead of Bitmap. You set the image of an ImageView using a Bitmap and a Bitmap isn't a view.

Try using

int[] loc = new int[2];
imageView.getLocationOnScreen(loc)

or

int[] loc = new int[2];
imageView.getLocationInWindow(loc)
roarster
  • 4,058
  • 2
  • 25
  • 38