1.代码为笔记内容,基本可以运行的
RotateAnimation rotate = new RotetaAnimation(0.360,Animation.RELATIVE_TO_SELF,0.5f,Animation.RELATIVE_TO_SELF,0.5f);
rotate.setDuration(2000);//动画时间
imageView.setAnimation(rotate);
本文介绍了一种使用RotateAnimation类创建旋转动画的方法。通过设置动画的角度、相对位置及持续时间,可以在ImageView上实现从0到360度的完整旋转效果。
1.代码为笔记内容,基本可以运行的
RotateAnimation rotate = new RotetaAnimation(0.360,Animation.RELATIVE_TO_SELF,0.5f,Animation.RELATIVE_TO_SELF,0.5f);
rotate.setDuration(2000);//动画时间
imageView.setAnimation(rotate);

被折叠的 条评论
为什么被折叠?