0

I have a text view and I am setting moving animation on this view. Now I want to get each position in every mili second. Is this possible?? Or How can I check that this view is crossed a fix coordinate??

Phantômaxx
  • 37,901
  • 21
  • 84
  • 115

1 Answers1

0

I think that this would be a proper example for your case. You can see in the accepted answer that you'll be able to get an animated view's position when it changes by using the onAnimationUpdate listener for an ObjectAnimator object,

I don't know if you are using the ObjectAnimator for your animation, and if you don't I suggest you doing so, because it would be an easy way to achieve what you want.

Tal Barda
  • 4,067
  • 10
  • 28
  • 53