title: Animation with animationSet() in android
body: <p>OK here's the problem
  i have an ImageView in my activity, here's what it looks in main.xml:</p>
  
  <pre><code>&lt;ImageView  
  android:id="@+id/ic"
  android:layout_width="wrap_content" 
  android:layout_height="wrap_content" 
  android:src="@drawable/icon"
  android:layout_gravity="center_horizontal"/&gt;
  </code></pre>
  
  <p>I want this image to move -200(left) and then to 100(right) and then back to 0 with bouncing effect.</p>
  
  <p>I've implement this with my code:</p>
  
  <pre><code>as = new AnimationSet(true);
  as.setFillEnabled(true);
  as.setInterpolator(new BounceInterpolator());
  
  TranslateAnimation ta = new TranslateAnimation(-300, 100, 0, 0); 
  ta.setDuration(2000);
  as.addAnimation(ta);
  
  AnimationSet sa = new AnimationSet(true);
  sa.setFillEnabled(true);
  sa.setInterpolator(new DecelerateInterpolator());
  
  TranslateAnimation ta2 = new TranslateAnimation(100, 0, 0, 0); 
  ta2.setDuration(2000);
  sa.addAnimation(ta2);
  
  as.addAnimation(sa);
  </code></pre>
  
  <p>you can see at the code the X transition that i want (-300,100) then (100, 0)</p>
  
  <p>however, the image doesn't move like it should, instead it just stop at 100 and then bouncing...</p>
  
  <p>hmmm...., do you guys know what is wrong or what should i do to accomplish this?</p>