动画加载类
Animation operatingAnim = AnimationUtils
.loadAnimation(this, R.anim.tip);LinearInterpolator lin = new LinearInterpolator();
operatingAnim.setInterpolator(lin);
if (operatingAnim != null) {
iv_obj.clearAnimation();
iv_obj.startAnimation(operatingAnim);
}
动画属性
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<rotate
android:fromDegrees="0"
android:toDegrees="359"
android:duration="500"
android:repeatCount="-1"
android:pivotX="50%"
android:pivotY="50%" />
</set>