title: Animate last added child in Grid View with Adapter
body: <p>I have a <code>GridView</code> which I am constantly adding views to. When the view adds to the grid I wish for it to do an animation. However, as I have to use <code>setAdapter()</code> to refresh the <code>GridView</code>, it ends up animating all views, as they are all being re-added. Is there anyway around this?</p>
  
  <p>Here is the code for my view I am adding:</p>
  
  <pre><code>public class GridImageView extends ImageView {
  
  
  public GridImageView(Context context) {
      super(context);
  }
  
  public GridImageView(Context context, AttributeSet attrs) {
      super(context, attrs);
  }
  
  public GridImageView(Context context, AttributeSet attrs, int defStyle) {
      super(context, attrs, defStyle);
  }
  
  @Override
  protected void onAttachedToWindow() {
      super.onAttachedToWindow();
      ScaleAnimation anim = new ScaleAnimation(0,1,0,1);
      anim.setDuration(1000);
      anim.setFillAfter(true);
      this.startAnimation(anim);
   }
  }
  </code></pre>
  
  <p>As always, thanks for your help</p>