Android自定义进度条-带文本(文字进度)的水平进度条(ProgressBar)
默认的进度条(ProgressBar)是没有文本进度提示的,为了更直观显示进度,自定义了ProgressBar控件来显示的文本进度。
package com.orgcent.view;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color; import android.graphics.Paint; import android.graphics.Rect; import android.util.AttributeSet; import android.widget.ProgressBar; public class TextProgressBar extends ProgressBar { private String text; private Paint mPaint; public TextProgressBar(Context context) { super(context); initText(); }
原文地址:Android自定义进度条-带文本(文字进度)的水平进度条(ProgressBar)| http://orgcent.com/android-text-progressbar/
相关推荐
taiyuanwuyin 2011-09-23
Rgenxiao 2011-12-18
familynt 2016-08-19
yxwang0 2014-12-27
刘炳昭 2013-04-12
scott0 2011-11-24
lyccsu 2011-11-23
xfcyhades 2011-04-29
yuemeng0 2010-07-12
PrisonJoker 2018-07-11
fuzhangandroid 2013-07-10
pengjin 2020-05-18
ajaxDreamer 2011-10-26
lgzaaron 2017-01-15
berber 2016-05-13
blueskyhk 2013-12-25