title: Android: how to use ValueAnimator
body: <p>I want to do a translate animation using this following</p>
  
  <pre><code>public static void move(TextView view){
  
      ValueAnimator va = ValueAnimator.ofFloat(0f, 3f);
      int mDuration = 3000; //in millis
      va.setDuration(mDuration);
      va.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() {
          public void onAnimationUpdate(ValueAnimator animation) {
  
          }
      });
      va.setRepeatCount(5);
      va.start();
  }
  </code></pre>
  
  <p>But I don't know how to use onAnimationUpdate method.</p>
  
  <p>Can anyone help please?</p>