【发布时间】:2018-07-18 19:20:26
【问题描述】:
我正在处理RotateAnimation。我开始旋转图像,但我想知道动画何时完成。我怎么知道动画何时结束?
下面是我的旋转图片代码。
RotateAnimation rotateanimation = new RotateAnimation(StartPoint,
EndPoint, Animation.RELATIVE_TO_SELF, 0.5f,
Animation.RELATIVE_TO_SELF, 0.5f);
rotateanimation.setDuration(1000);
rotateanimation.setRepeatCount(0);
rotateanimation.setRepeatMode(Animation.REVERSE);
rotateanimation.setFillAfter(true);
rotateImage.setAnimation(rotateanimation);
rotateanimation.start();
relative.invalidate();
【问题讨论】: