title: Android - Animation start offset not working properly
body: <p>I am trying to make an animation that will slide from it's current position to the center of the screen and then flip. I have each moving component working properly but once I put them all into a set with the startoffset, the animation doesnt start until that offset ends and it performs all the animations at once. Any help on this is much appreciated.</p>
  
  <p><strong>slide_down.xml</strong></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;!-- Slide down --&gt;
      &lt;translate 
          android:fromYDelta="0%" 
          android:toYDelta="100%"
          android:duration="1000"/&gt;
  
      &lt;!-- Set alpha to fully opaque --&gt;
      &lt;alpha 
          android:fromAlpha="0.8"
          android:toAlpha="1.0"
          android:duration="1000" /&gt;
  
      &lt;!-- Flip image once it's in the center --&gt;
      &lt;!-- ***** HERE IS THE only offset I set ****** --&gt;
      &lt;scale
          android:fromXScale="0.0"
          android:toXScale="1.0"
          android:pivotX="50%"
          android:fromYScale="1.0"
          android:toYScale="1.0"
          android:startOffset="1000"
          android:duration="200" /&gt;
  &lt;/set&gt;
  </code></pre>
  
  <p><strong>calling code</strong></p>
  
  <pre><code>Animation anim = AnimationUtils.loadAnimation(getActivity(), slideDirection);
          anim.setAnimationListener(new AnimationListener() {
              public void onAnimationStart(Animation animation) {             
              }
  
              public void onAnimationRepeat(Animation animation) {                
              }
  
              public void onAnimationEnd(Animation animation) {
                  mCallBack.categorySelected(view.getId());
              }
          });
  
          view.clearAnimation();
          view.startAnimation(anim);
  </code></pre>
  
  <p>Thanks,
  Dman</p>