0

How can I rotate an image on android? I am going to use image sequence animation. But I don`t know the java code for that.

MarJamRob
  • 3,395
  • 7
  • 22
  • 31
khan
  • 915
  • 2
  • 9
  • 16

1 Answers1

0

Try this:

RotateAnimation anim = new RotateAnimation(0, 360,0,0);
anim.setRepeatCount(0);
anim.setDuration(3000);
anim.setFillAfter(true);  
ImageView.startAnimation(anim);
Pang
  • 9,564
  • 146
  • 81
  • 122
Niranj Patel
  • 32,980
  • 10
  • 97
  • 133
  • Refer this link to stop animation: http://stackoverflow.com/questions/3913750/android-how-to-stop-an-infinite-animation-applied-on-an-imageview – selladurai Mar 22 '11 at 09:55