question: @ 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 ) ; }
target:  When the size of CircleProgressBar changed, need to re-adjust the drawing area