title: android two animations at once
body: <p>I used ValueAnimator to move an ImageView through a parabolic way, and it worked like a charm.
  Now i'm trying to add another animation to the same ImageView, a rotation arround itself using XML code.
  When i use the animation of rotation alone (without the ValueAnimator), it works fine, but when i launch the both animation at once, the result is completely wrong, the image goes through an wrong way, sometimes it blocks.
  Here's the codes:</p>
  
  <pre><code>this.ValueAnimator1 = ValueAnimator.ofFloat(0.0f,1.0f);
  this.ValueAnimator1.setDuration(4000);
  this.ValueAnimator1.addUpdateListener(new AnimatorUpdateListener(){
      @Override
      public void onAnimationUpdate(ValueAnimator animation) {
          float t = ((Float)ValueAnimator1.getAnimatedValue()).floatValue();
          float xPos = p0.x*(1-t)*(1-t) + 
              p1.x*2*t*(1-t) + p2.x*t*t;
          float yPos = p0.y*(1-t)*(1-t) + 
              p1.y*2*t*(1-t) + p2.y*t*t;
          ImageView1.setTranslationX(xPos); 
          ImageView1.setTranslationY(yPos);
      }
  });
  this.Animation1 = AnimationUtils.loadAnimation(this,R.anim.rotation_projectile);
  ImageView1.startAnimation(rotationProjectile);
  ValueAnimator1.start();
  
  &lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;rotate 
      xmlns:android="http://schemas.android.com/apk/res/android"
      android:fromDegrees="0" 
      android:toDegrees="90"
      android:pivotX="50%"
      android:pivotY="50%"
      android:fillEnabled="true"
      android:fillAfter="true"
      android:duration="4000"
  /&gt;
  </code></pre>