ArcProgressBar
ArcProgressBar copied to clipboard
为啥progressbar的圆点不在中心点,就是有偏移呢?
如图
为啥progressbar不在正中央呢? 系统自带的都是放在中间的?请问这个要设置哪里呢?
替换下这个里的代码就居中了
@Override
protected void onSizeChanged(int w, int h, int oldw, int oldh) {
super.onSizeChanged(w, h, oldw, oldh);
mArcRectf = new RectF(mBoardWidth,
mBoardWidth,
mRadius*2 + mBoardWidth ,
mRadius*2 + mBoardWidth);
Log.e("DEMO","right == "+mArcRectf.right+" mRadius == "+mRadius*2);
}