title: How to replay a one shot animation
body: <p>I want to make a one shot animation but be able to play it as many times as I want. Right now it plays only the first time.</p>
  
  <p>.xml:</p>
  
  <pre><code>&lt;animation-list xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@+id/p1_ch1" android:oneshot="true"&gt;
      &lt;item 
        android:drawable="@drawable/p1_ch1_5" 
        android:duration="500"/&gt;
      &lt;item 
        android:drawable="@drawable/p1_ch1_4" 
        android:duration="1000"/&gt;
      &lt;item 
        android:drawable="@drawable/p1_ch1_5" 
        android:duration="500"/&gt;
  &lt;/animation-list&gt;
  </code></pre>
  
  <p>.java:</p>
  
  <pre><code>public void handler_p1_ch1_5 (View target){
        ImageView iv = (ImageView)findViewById(R.id.p1_ch1_5);
        AnimationDrawable aw = (AnimationDrawable)iv.getBackground();
        aw.start();
  }
  </code></pre>