title: Android finding X and Y in tween animation
body: <p>i have a drawable frame animation and i also implement tween animation on it. In drawable animation my sprites it walking without moving its location. and through tween animation it is moving from x 1% to x 100%.</p>
  
  <p>the code of both animation is as </p>
  
  <pre><code>    Animation movement = AnimationUtils.loadAnimation(getApplicationContext(), R.anim.animationball);
      anim.startAnimation(movement);
  
      anim.setBackgroundResource(R.drawable.smurf);
      AnimationDrawable walking = (AnimationDrawable) anim.getBackground();
      walking.start();
  </code></pre>
  
  <p>it is working fine and my animation gives illusion that m sprite walking from left to right.
  now i wanted to get  X and Y location of this animated sprite at every pixel of its movement path.</p>
  
  <p>i implements runnable on same activity class and the code of its run() method is as below</p>
  
  <pre><code>@SuppressLint("NewApi") @Override
  public void run() {
  
      tv.setText(""+ anim.getX());
  
  }
  </code></pre>
  
  <p>then i start the thread in onCreate method as</p>
  
  <pre><code>    Thread t = new Thread(this);
      t.start();
  </code></pre>
  
  <p>in run() method tv is a TextView and i wanted to observe the locations through it. but it always showing 0.0</p>
  
  <p>i am unable to understand it why it is not showing the x locations ?</p>