2010-12-20 57 views

回答

1

此代码将旋转视图360度:

RotateAnimation rotateAnimation = new RotateAnimation(360,0); 
rotateAnimation.setDuration(ROTATE_TIME); 
myView.startAnimation(rotateAnimation); 

为了使它重复:

anim.setRepeatCount(Animation.INFINITE);

如果你想运动具有甚至在整个动画的速度,看看这个问题,我问了几个一个月前:

Make ScaleAnimation move evenly, or figure out how it moves

+0

感谢名单得到了它,它的做工精细 – santhosh 2010-12-22 07:22:51

+0

然后PLOX接受答案是正确的:) – pgsandstrom 2011-01-13 10:01:18