您的位置:首页 > 编程语言 > PHP开发

(4.2.19)彩色进度条CircleProgress, DonutProgress, ArcProgress

2015-08-10 18:22 681 查看
DonutProgress

CircleProgress

github

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
![这里写图片描述](http://img.blog.csdn.net/20150810181659913)




“`
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: