ImageView
Android のトゥイーン アニメーションに問題があります。項目を画面の中央から画面の上部に移動しようとしましたが、変換ImageView
が終了すると最初の位置に戻ります! 私はこのコードを使用します:
<?xml version="1.0" encoding="utf-8"?>
<translate
xmlns:android="http://schemas.android.com/apk/res/android"
android:interpolator="@android:anim/bounce_interpolator"
android:fromYDelta="0%"
android:toYDelta="-1500%"
android:duration="3000"
android:startOffset="3000">
</translate>
private void RunAnimations() {
Animation animation = AnimationUtils.loadAnimation(this, R.anim.move_up_maxname);
animation.reset();
ImageView maxName = (ImageView) findViewById(R.id.imageView1);
maxName.clearAnimation();
maxName.startAnimation(animation);
}
誰でも私を助けることができますか?
ありがとう