title: Moving animation not smooth in android
body: <p>I am trying to create a moving ball animation in my app everything is working fine, ball moved as i want but it is not smooth. I tried everything to make it smooth but no luck every time i failed. </p>
  
  <p>here is my xml code:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;set xmlns:android="http://schemas.android.com/apk/res/android"
      android:shareInterpolator="true" &gt;
  
      &lt;translate
          android:duration="3000"
          android:fromXDelta="-1%p"
          android:fromYDelta="-87%p"
          android:toXDelta="1%p"
          android:toYDelta="-40%p" /&gt;
  
      &lt;translate
          android:duration="3000"
          android:fromXDelta="2%p"
          android:fromYDelta="0%p"
          android:startOffset="2200"
          android:toXDelta="0%p"
          android:toYDelta="42%p" /&gt;
  
      &lt;translate
          android:duration="4000"
          android:fromXDelta="0%p"
          android:fromYDelta="42%p"
          android:startOffset="4500"
          android:toXDelta="-5%p"
          android:toYDelta="0%p" /&gt;
  
      &lt;translate
          android:duration="4000"
          android:fromXDelta="0%p"
          android:fromYDelta="0%p"
          android:startOffset="5500"
          android:toXDelta="4%p"
          android:toYDelta="-47%p" /&gt;
  
  
  &lt;/set&gt;
  </code></pre>
  
  <p>and here is my java code:</p>
  
  <pre><code>ImageView image = (ImageView)findViewById(R.id.imageView1);
  Animation anim = AnimationUtils.loadAnimation(this, R.drawable.moveing_ball_anim); 
  image.startAnimation(anim);
  </code></pre>
  
  <p>I move image in this shape.</p>
  
  <p><img src="https://i.stack.imgur.com/Tf3Kz.png" alt=""></p>