title: Android setAnimation firing directly
body: <p>Hello I am using the following:</p>
  
  <pre><code>        final ImageView ivLoading3 = new ImageView(context);
          ivLoading3.setBackgroundResource(com.example.testtabswipe.R.drawable.dot_loading);
          ivLoading3.setLayoutParams(layoutParams);
          final TranslateAnimation mAnimation3 = new LoadingTranslateAnimation(
                  TranslateAnimation.ABSOLUTE, 0f,
                  TranslateAnimation.ABSOLUTE, 0f,
                  TranslateAnimation.RELATIVE_TO_PARENT, 0f,
                  TranslateAnimation.RELATIVE_TO_PARENT, 0.2f);
          ((LinearLayout) view).addView(ivLoading3);
          ivLoading3.setAnimation(mAnimation3); // &lt;--- firing off directly
  </code></pre>
  
  <p>I wish for this not to fire directly. Is there something I'm missing?</p>
  
  <p>As I understand it startAnimation is used to fire directly and setAnimation just sets it but does not fire it. Something I misunderstood here?</p>
  
  <p>From the official document at <a href="http://developer.android.com/reference/android/view/View.html#setAnimation(android.view.animation.Animation)" rel="nofollow">http://developer.android.com/reference/android/view/View.html#setAnimation(android.view.animation.Animation)</a>:</p>
  
  <blockquote>
    <p>public void setAnimation (Animation animation)
    Sets the next animation to play for this view. If you want the
    animation to play     immediately, use
    startAnimation(android.view.animation.Animation) instead.  This method
    provides allows fine-grained control over the start time and
    invalidation, but you must make sure that 1) the animation has a start
    time set, and 2) the view's parent (which controls animations on its
    children) will be invalidated when the animation is supposed to start.</p>
  </blockquote>