自定义progressbar样式
<?xml version="1.0" encoding="UTF-8"?>
<rotate xmlns:android="http://schemas.android.com/apk/res/android"android:fromDegrees="0"
android:pivotX="50%"
android:pivotY="50%"
android:toDegrees="360">
<shape android:innerRadiusRatio="3"
android:shape="ring"
android:thicknessRatio="30"
android:useLevel="false">
<gradient
android:centerColor="#FFFFFF"
android:centerY="0.01"
android:endColor="#FFFFFF"
android:startColor="#000000"
android:type="sweep"
android:useLevel="false"/>
</shape>
</rotate>
在xml文件中引用android:indeterminateDrawable="@drawable/progrossbar_style"