private void startLoadingAnimation(ImageView iv) {
Animation animation = new RotateAnimation(0, 359, Animation.RELATIVE_TO_SELF, 0.5f, Animation.RELATIVE_TO_SELF, 0.5f);
animation.setDuration(1000);
animation.setRepeatCount(1000);
animation.setFillAfter(true);//设置为true,动画转化结束后被应用
iv.startAnimation(animation);//开始动画
}
Android makes ImageView rotate with animation
Guess you like
Origin blog.csdn.net/qq_27494201/article/details/132192872
Recommended
Ranking