inspired from https://github.com/daimajia/NumberProgressBar
DonutProgress
<com.github.lzyzsd.circleprogress.DonutProgress
android:layout_marginLeft="50dp"
android:id="@+id/donut_progress"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
custom:donut_progress="30"/>
<declare-styleable name="DonutProgress">
<attr name="donut_progress" format="integer"/>
<attr name="donut_max" format="integer"/>
<attr name="donut_unfinished_color" format="color"/>
<attr name="donut_finished_color" format="color"/>
<attr name="donut_finished_stroke_width" format="dimension"/>
<attr name="donut_unfinished_stroke_width" format="dimension"/>
<attr name="donut_text_size" format="dimension"/>
<attr name="donut_text_color" format="color"/>
<attr name="donut_text" format="string"/>
<attr name="donut_prefix_text" format="string"/>
<attr name="donut_suffix_text" format="string"/>
<attr name="donut_background_color" format="color"/>
</declare-styleable>
DonutProgress cpYinYuan = (DonutProgress) findViewById(R.id.donut_progress1);
cpYinYuan.setFinishedStrokeColor(getResources().getColor(
R.color.color_util_hun_pei_color1));
cpYinYuan.setTextColor(getResources().getColor(
R.color.color_util_hun_pei_color1));
cpYinYuan.setProgress(N_YinYuanZhiShu);
CircleProgress
“`
# ArcProgress
![这里写图片描述](https://img-blog.csdn.net/20150810181659913)
“`