ProgressBar
<ProgressBar android:layout_width="wrap_content" android:layout_height="wrap_content" android:indeterminateDrawable="@drawable/progress_my_style" style="?android:attr/progressBarStyle" />
旋转形式:
<animated-rotate xmlns:android="http://schemas.android.com/apk/res/android" android:drawable="@drawable/spinner_color" android:pivotX="50%" android:pivotY="50%" />
补间动画形式:
<?xml version="1.0" encoding="UTF-8"?> <animation-list xmlns:android="http://schemas.android.com/apk/res/android" android:oneshot="false" > <item android:drawable="@drawable/loading01" android:duration="150"/> <item android:drawable="@drawable/loading02" android:duration="150"/> <item android:drawable="@drawable/loading03" android:duration="150"/> <item android:drawable="@drawable/loading04" android:duration="150"/> <item android:drawable="@drawable/loading05" android:duration="150"/> <item android:drawable="@drawable/loading06" android:duration="150"/> <item android:drawable="@drawable/loading07" android:duration="150"/> </animation-list>