title: Repeat android animation before its end
body: <p>I have a basic animation that make a picture grow and fade, syntax is as follow :</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;set xmlns:android="http://schemas.android.com/apk/res/android"
      android:shareInterpolator="false"&gt;
  
    &lt;scale
     android:interpolator="@android:anim/linear_interpolator"
     android:fromXScale="1.0"
     android:toXScale="4.0"
     android:fromYScale="1.0"
     android:toYScale="4.0"
     android:pivotX="50%"
     android:pivotY="50%"
     android:fillAfter="true"
     android:duration="2500"
     android:repeatCount="infinite"
     android:repeatMode="restart" /&gt;
    &lt;alpha    
     android:fromAlpha="1.0"    
     android:toAlpha="0.0"    
     android:duration="2500"
     android:repeatCount="infinite"
     android:repeatMode="restart"/&gt;  
  
  &lt;/set&gt;
  </code></pre>
  
  <p>Then I call it like that</p>
  
  <pre><code>    ImageView circleImage = (ImageView) findViewById(R.id.image_loader);
      Animation pulseAnimation = AnimationUtils.loadAnimation(this, R.anim.pulse_animation);
      circleImage.startAnimation(pulseAnimation);
  </code></pre>
  
  <p>Everything is working as expected but I would like to repeat that animation before its end. Let's say I want to repeat the animation each second even if it takes 2.5 seconds to play.</p>
  
  <p>What is the proper way to do so ?</p>