title: Running the same frame animation on each onClick call
body: <p>I'm trying to display a frame to frame animations using AnimationDrawable when clicking a <code>ImageView</code>. But my animation happens only once when I click the <code>ImageView</code>. I'm using xml for the animation.</p>
  
  <p>Animation xml:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;animation-list xmlns:android="http://schemas.android.com/apk/res/android" android:oneshot="true"&gt;
    &lt;item android:drawable="@drawable/scorepopup1" android:duration="100" /&gt;
    &lt;item android:drawable="@drawable/scorepopup2" android:duration="100" /&gt;
    &lt;item android:drawable="@drawable/scorepopup3" android:duration="100" /&gt;
    &lt;item android:drawable="@drawable/scorepopup4" android:duration="100" /&gt;
    &lt;item android:drawable="@drawable/invipopup" android:duration="100" /&gt;
  
  &lt;/animation-list&gt;
  </code></pre>
  
  <p>Here's my xml for the button and the container of the animation image: </p>
  
  <pre><code>&lt;LinearLayout
      xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="70dp"
      android:layout_height="50dp"
      android:layout_alignParentRight="true" 
      android:layout_margin="5dp"&gt;
  
      &lt;ImageView
      android:layout_width="35dp"
      android:layout_height="35dp"
      android:background="@drawable/bd"
      android:layout_margin="10dp"
      android:onClick="checkGem" 
      android:contentDescription="bd"/&gt;
  
  
      &lt;ImageView
          android:id="@+id/scorePopup"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_marginRight="10dp"
          android:layout_marginTop="10dp" /&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>checkGem Method:</p>
  
  <pre><code>ImageView popup1 =  (ImageView) findViewById(R.id.scorePopup);
  
  popup1.setBackgroundResource(R.drawable.popup1_animation);
  AnimationDrawable frameAnimation2 = (AnimationDrawable) 
  
  popup1.getBackground();
  frameAnimation2.start();
  </code></pre>
  
  <p>My problem is the animation displays only once, But I want it to animate everytime I click. Any ideas?</p>