title: Translate Animation Issue in Android
body: <p>I am new to Android, I try to make translate animation.</p>
  
  <p>This is my xml code: (<strong>rail.xml</strong>)</p>
  
  <pre><code>&lt;translate
   xmlns:android="http://schemas.android.com/apk/res/android"
   android:fromXDelta="100%p"
   android:toXDelta="0"
   android:duration="4000" /&gt;
  </code></pre>
  
  <p>and this is my java code:</p>
  
  <pre><code>final Animation animShow = AnimationUtils.loadAnimation( this, R.anim.rail);
  for(int i = 1; i &lt; 5; i++ ){
  
      animShow.setRepeatCount(i);
  
      textTV.setText("Hello Android!!");
      textTV.startAnimation(animShow);
  }
  </code></pre>
  
  <p>I want to ask, how do I change the text of each animation repeat?</p>