DoughnutDemo_Android
DoughnutDemo_Android copied to clipboard
渐变色的圆环
Results
2
DoughnutDemo_Android issues
Sort by
recently updated
recently updated
newest added
使用BounceInterpolator的话,getInterpolation返回的float最大值大于1,所以getCurrentColor的判断条件应该改为f.length == 1 || percent >= 1
在我的手机上,共用一个Paint,达不到想要的效果,定义了不同的画笔就可以了…… canvas.drawArc(mRect, 0, 360, false, mPaintWhite); canvas.drawArc(mRect, 0, mCurValue, false, mPaintColor);