1.image_rotate.xml
<?xml version="1.0" encoding="utf-8"?>
<animated-rotate xmlns:android="http://schemas.android.com/apk/res/android"
android:drawable="@drawable/ic_launcher"
android:pivotX="50%"
android:pivotY="50%" />
2.在控件中引用
<ImageView
android:layout_width="wrap_content"
android:src="@drawable/image_rotate"
android:layout_height="wrap_content" />