ArcProgressBar icon indicating copy to clipboard operation
ArcProgressBar copied to clipboard

为啥progressbar的圆点不在中心点,就是有偏移呢?

Open tommyfeng opened this issue 7 years ago • 1 comments

如图 qq 20170608190045 为啥progressbar不在正中央呢? 系统自带的都是放在中间的?请问这个要设置哪里呢?

tommyfeng avatar Jun 08 '17 11:06 tommyfeng

替换下这个里的代码就居中了

@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);
    }

zyoo5 avatar Oct 23 '17 07:10 zyoo5