怎么简略的自界说圆形progressBar

2018-03-01 11:20:04来历:oschina作者:晨的暖阳人点击

共享

界说res/drawable/progress_green.xml <?xml version="1.0" encoding="utf-8"
android:fromDegrees="0"
android:pivotX="50%"
android:pivotY="50%"
android:toDegrees="360">
android:innerRadiusRatio="3"
android:shape="ring"
android:thicknessRatio="15"
android:useLevel="false">
android:centerY="0.50"
android:endColor="@color/light_green"
android:startColor="@color/white"
android:type="linear"
android:useLevel="false"/>


2.为ProgressBar的indeterminateDrawable指定特点.


android:id="@+id/loading_progress"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:indeterminateDrawable="@drawable/progress_green"
>

3.作用


微信扫一扫

明升m88.com微信大众渠道