自定义 横向的进度条
效果图是这样的: 接下来为大家粘贴代码: 首先是自定义的 ProgressBar : public class MyProgress extends ProgressBar { String text; Paint mPaint; public MyProgress(Context context) { super(context); // TODO Auto-generated constructor stub System.out.println("1"); initText(); } public MyProgress(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); // TODO Auto-generated constructor stub System.out.println("2"); initText(); } public MyProgress(Context context, AttributeSet attrs) { super(context, attrs); // TODO Auto-generated constructor stub System.out.println("3"); initText(); } @Override