【发布时间】:2012-02-09 09:27:25
【问题描述】:
我有一个简单的RotateAnimation 可以无限期地为ImageView 设置动画,直到我停止它。我的动画设置如下:
Animation spin = new RotateAnimation(0.0f, 1800.0f, Animation.RELATIVE_TO_SELF, 0.5f, Animation.RELATIVE_TO_SELF, 0.5f);
spin.setInterpolator(new LinearInterpolator());
spin.setRepeatCount(Animation.INFINITE);
spin.setDuration(5000);
imageView.setAnimation(spin);
当我致电imageView.cancelAnimation() 时,我是否可以将动画“冻结”在它结束的任何帧(或任何角度),而不是让它重置到第一帧?
【问题讨论】:
标签: android animation frame rotateanimation