2010-12-20 30 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