dashed-circular-progress是一个可以放在任何视图内的Android动画圆环进度条控件。支持最小的SDK版本是11(Android 3.0 Honeycomb)。
自定义属性:
1、外部环的颜色:custom:external_color="#1affffff"
2、The color base of the progress bar:custom:base_color="#6effffff"
3、The color of the progress line:custom:progress_color="#000000"
4、进度条图标:custom:progress_icon="@drawable/my_awesome_icon"
5、进度条最大值:custom:max="999"
6、进度条最小值:custom:min="0"
7、动画持续时间:custom:duration="1000"
用法:
<com.github.glomadrian.dashedcircularprogress.DashedCircularProgress
android:id="@+id/simple"
android:layout_width="match_parent"
android:layout_height="match_parent"
custom:external_color="#1affffff"
custom:base_color="#6effffff"
custom:min="0"
custom:max="999"
custom:progress_color="#000000"
custom:progress_icon="@drawable/my_awesome_icon"
custom:duration="3500"
>
//Put here any view you like to be inside progress bar
</com.github.glomadrian.dashedcircularprogress.DashedCircularProgress>
<com.github.glomadrian.dashedcircularprogress.DashedCircularProgress android:id="@+id/simple" android:layout_width="match_parent" android:layout_height="match_parent" custom:external_color="#1affffff" custom:base_color="#6effffff" custom:min="0" custom:max="999" custom:progress_color="#000000" custom:progress_icon="@drawable/my_awesome_icon" custom:duration="3500" > //Put here any view you like to be inside progress bar </com.github.glomadrian.dashedcircularprogress.DashedCircularProgress>