ANDROID实现圆形图形不断旋转的动画

来源:互联网 发布:网络零食 编辑:程序博客网 时间:2024/05/18 03:05
<?xml version="1.0" encoding="utf-8"?><set xmlns:android="http://schemas.android.com/apk/res/android" >    <rotate        android:duration="1000"        android:fromDegrees="0"        android:interpolator="@android:anim/linear_interpolator"        android:pivotX="50%"        android:pivotY="50%"        android:repeatCount="-1"        android:toDegrees="360" /></set>
mAnimationView = (ImageView) findViewById(R.id.animation);    mAnimation = AnimationUtils.loadAnimation(this, R.anim.rotaterepeat);    mAnimationView.startAnimation(mAnimation);