[英]How to rotate an image in Android?
How can I rotate an image on android? 如何在Android上旋转图片? I am going to use image sequence animation.
我将使用图像序列动画。 But I don`t know the java code for that.
但是我不知道这个的Java代码。
Try this: 尝试这个:
RotateAnimation anim = new RotateAnimation(0, 360,0,0);
anim.setRepeatCount(0);
anim.setDuration(3000);
anim.setFillAfter(true);
ImageView.startAnimation(anim);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.