drawable
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<rotate
android:drawable="@drawable/ls_logo_small"
android:fromDegrees="0"
android:interpolator="@android:anim/linear_interpolator"
android:pivotX="50%"
android:pivotY="50%"
android:repeatCount="infinite"
android:repeatMode="restart"
android:toDegrees="1080"/>
<span style="white-space:pre/>
</item>
</layer-list>
xml
<ProgressBar android:id="@+id/pb"
style="@style/MaterialProgressBar.ProgressBar.Circle"
android:layout_width="@dimen/dimen_40"
android:layout_height="@dimen/dimen_40"
android:layout_centerHorizontal="true"
android:indeterminate="true" />
styles 文件
<style name="MaterialProgressBar.ProgressBar.Circle" parent="android:Widget.ProgressBar">
<item name="android:indeterminateDrawable">@drawable/progressbar</item>
<item name="android:minWidth">48dp</item>
<item name="android:maxWidth">48dp</item>
<item name="android:minHeight">48dp</item>
<item name="android:maxHeight">48dp</item>
</style