@Override protected void onSizeChanged(int w,int h,int oldw,int oldh){
  super.onSizeChanged(w,h,oldw,oldh);
  mCenterX=w / 2;
  mCenterY=h / 2;
  mRadius=Math.min(mCenterX,mCenterY);
  mProgressRectF.top=mCenterY - mRadius;
  mProgressRectF.bottom=mCenterY + mRadius;
  mProgressRectF.left=mCenterX - mRadius;
  mProgressRectF.right=mCenterX + mRadius;
  updateProgressShader();
  mProgressRectF.inset(mProgressStrokeWidth / 2,mProgressStrokeWidth / 2);
}

@ Override protected void onSizeChanged ( int w , int h , int oldw , int oldh ) { super . onSizeChanged ( w , h , oldw , oldh ) ; mCenterX = w / 2 ; mCenterY = h / 2 ; mRadius = Math . min ( mCenterX , mCenterY ) ; mProgressRectF . top = mCenterY - mRadius ; mProgressRectF . bottom = mCenterY + mRadius ; mProgressRectF . left = mCenterX - mRadius ; mProgressRectF . right = mCenterX + mRadius ; updateProgressShader ( ) ; mProgressRectF . inset ( mProgressStrokeWidth / 2 , mProgressStrokeWidth / 2 ) ; }
when the size of circleprogressbar changed , need to re - adjust the drawing area
