Android java stop a animation after completed
<p>How can i stop a animation after it has completed?</p>

<p>My animation is the image fades in</p>

<p>code:</p>

<p>Java: </p>

<pre><code>        super.onCreate(savedInstanceState);
    setContentView(R.layout.main);

    ImageView imageView= (ImageView)findViewById(R.id.tCat);
    Animation fadeInAnimation = AnimationUtils.loadAnimation(this, R.anim.anim);
    imageView.startAnimation(fadeInAnimation );
</code></pre>

<p>xml</p>

<pre><code>    &lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;set xmlns:android="http://schemas.android.com/apk/res/android"&gt;
    &lt;alpha android:fromAlpha="0.0" android:toAlpha="1.0" 
     android:interpolator="@android:anim/accelerate_interpolator" 
   android:duration="5000"
    android:repeatCount="infinite"/&gt;
    &lt;/set&gt;
</code></pre>
