开发者

How to rotate an image in Android?

How can I rotate an image on android? I am going to use开发者_如何学Python image sequence animation. But I don`t know the java code for that.


Try this:

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

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜