title: Gmail listview flip animation
body: <p>I was trying to create an animation just like that we see in Gmail's listview widget. When we select the row, we press the circle on the left and it flips into a checked mark. </p>
  
  <p>What I was planning to do was to create an animation set, with two scale animations. For some strange reason it doesn't work. </p>
  
  <p>I am using a single image for the time being and applying the flip onto that. This is my anim.xml:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;set&gt;
      &lt;scale
          android:duration="2000"
          android:fromXScale="1.0"
          android:fromYScale="1.0"
          android:toXScale="0.0"
          android:toYScale="1.0"
          android:pivotX="50%"
          android:pivotY="50%"
          &gt;
      &lt;/scale&gt;
      &lt;scale
          android:startOffset="2000"
          android:duration="2000"
          android:fromXScale="0.0"
          android:fromYScale="1.0"
          android:toXScale="1.0"
          android:toYScale="1.0"
          android:pivotX="50%"
          android:pivotY="50%"
          &gt;
      &lt;/scale&gt;
  &lt;/set&gt;
  </code></pre>
  
  <p>The animation is easy to read. I am starting a scale from 100 to 0. then scaling it back to 100. When I apply this on the imageview, I don't see any animation at all. </p>
  
  <p>This is how I load the animation:</p>
  
  <pre><code>final AnimationSet animationSet = (AnimationSet) AnimationUtils.loadAnimation(this,R.anim.flip);
  mCompanyProfileImage.startAnimation(animationSet);
  </code></pre>
  
  <p>What am I doing wrong?</p>