[2.8.0-f] 方向盘向左时竖线bug
This commit is contained in:
@@ -110,7 +110,11 @@ class CircularProgressView @JvmOverloads constructor(
|
||||
mRectF?.let { it1 ->
|
||||
sweepGradient()
|
||||
var degree: Float = 3.6f * (mProgress.toFloat())
|
||||
it.drawArc(it1, 275.0f, degree, false, mProgPaint)
|
||||
if(mProgress>=0) {
|
||||
it.drawArc(it1, 275.0f, degree, false, mProgPaint)
|
||||
}else{
|
||||
it.drawArc(it1, 265.0f, degree, false, mProgPaint)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user