简单记录一下而已,
正文
private ObjectAnimator mRotation = null; mRotation = ObjectAnimator.ofFloat(view, "rotation", 0, 360); mRotation.setDuration(2000);//旋转时间 mRotation.setRepeatCount(ValueAnimator.INFINITE); //旋转次数 mRotation.setInterpolator(new LinearInterpolator()); //旋转速度 mRotation.start();
ObjectAnimator还可以暂停,恢复等动画。
//暂停 mObjectAnimator.pause(); //恢复 mObjectAnimator.resume();
![[代码片段]Java获取某目录下文件总大小](https://www.biumall.com/wp-content/themes/BiuX/assets/images/random/0.webp)