Ich versuche, eine bewegte Ballanimation in meiner App alles funktioniert gut, Ball bewegt, wie ich will, aber es ist nicht glatt. Ich habe alles versucht, um es glatt zu machen, aber kein Glück jedes Mal, wenn ich versagte.Moving Animation nicht glatt in android
hier ist mein xml-Code:
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:shareInterpolator="true" >
<translate
android:duration="3000"
android:fromXDelta="-1%p"
android:fromYDelta="-87%p"
android:toXDelta="1%p"
android:toYDelta="-40%p" />
<translate
android:duration="3000"
android:fromXDelta="2%p"
android:fromYDelta="0%p"
android:startOffset="2200"
android:toXDelta="0%p"
android:toYDelta="42%p" />
<translate
android:duration="4000"
android:fromXDelta="0%p"
android:fromYDelta="42%p"
android:startOffset="4500"
android:toXDelta="-5%p"
android:toYDelta="0%p" />
<translate
android:duration="4000"
android:fromXDelta="0%p"
android:fromYDelta="0%p"
android:startOffset="5500"
android:toXDelta="4%p"
android:toYDelta="-47%p" />
</set>
und hier ist mein Java-Code:
ImageView image = (ImageView)findViewById(R.id.imageView1);
Animation anim = AnimationUtils.loadAnimation(this, R.drawable.moveing_ball_anim);
image.startAnimation(anim);
Ich bewege Bild in dieser Form.