2011-03-22 100 views

回答

0

試試這個:

RotateAnimation anim = new RotateAnimation(0, 360,0,0); 
anim.setRepeatCount(0); 
anim.setDuration(3000); 
anim.setFillAfter(true); 
ImageView.startAnimation(anim); 
+0

我怎麼能停止動畫 – khan 2011-03-22 09:31:04

+0

請參考以下鏈接停止動畫:http://stackoverflow.com/questions/3913750/android-how-to-stop-an-infinite -animation-applied-on-imageview – selladurai 2011-03-22 09:55:54

+0

試試這個anim.cancel(); – 2011-03-22 12:28:26