title: How do i get the coordinates of a view during animation android
body: <p>these are just the methods i can override during animationListener.
  <a href="http://developer.android.com/reference/android/view/animation/Animation.AnimationListener.html" rel="nofollow">http://developer.android.com/reference/android/view/animation/Animation.AnimationListener.html</a></p>
  
  <pre><code>Animation animation
  
  animation = AnimationUtils.loadAnimation(getApplicationContext(), R.anim.device_box);
  
  animation.setAnimationListener(new AnimationListener(){
          @Overridepublic void onAnimationEnd(Animation arg0) {}
          @Override public void onAnimationRepeat(Animation animation) {}
          @Override public void onAnimationStart(Animation animation) {}});
  </code></pre>
  
  <p>I think adding a thread in onAnimationStart and stop it on onAnimationEnd and getting the coordinates with a loop inside the thread, this may work.
  But i think that i could get some problems with buttons because, when animating them in this way, only the background moves, not button area itself</p>
  
  <p>In this case, i have to investigate more with buttons</p>
  
  <p>What do you think about this, is there another way to achieve what i want?<br>
  Is this the better way to do it ?</p>