1.  res下建立一个动画文件夹anim
2.  anim文件夹下面建立名称为:rotaterepeat动画xml文件

    <?xml version="1.0" encoding="utf-8"?>
  <set xmlns:andro />
    </set> 
3. Activity文件下

ImageView mAnimationView = (ImageView) findViewById(R.id.animation); 
mAnimation = AnimationUtils.loadAnimation(this, R.anim.rotaterepeat); 
mAnimationView.startAnimation(mAnimation); 

相关文章: