(1)自定义半圆进度View的实现:
/**
*
* @author hjy
* 自定义半圆进度view实现油门加速减速
*/
public class CircleProgressView extends View {
private static final String TAG = "CircleProgressBar";
private int mMaxProgress = 2100;
private int mProgress = 80;
private final int mCircleLineStrokeWidth = 20;
private final int mTxtStrokeWidth = 4;
// 画圆所在的距形区域
private final RectF mRectF;
private final Paint mPaint;
private final Context mContext;
private String mTxtHint1;
private String mTxtHint2;
public CircleProgressView(Context context, AttributeSet attrs) {
super(context, attrs);