优化
This commit is contained in:
@@ -37,15 +37,15 @@ data class ReviewColumn(
|
|||||||
path.lineTo(start + height / 6, baseLine)
|
path.lineTo(start + height / 6, baseLine)
|
||||||
path.lineTo(start + height / 6, baseLine - height / 4)
|
path.lineTo(start + height / 6, baseLine - height / 4)
|
||||||
path.close()
|
path.close()
|
||||||
ChapterProvider.reviewPaint.style = Paint.Style.STROKE
|
val reviewPaint = ChapterProvider.reviewPaint
|
||||||
canvas.drawPath(path, ChapterProvider.reviewPaint)
|
reviewPaint.style = Paint.Style.STROKE
|
||||||
ChapterProvider.reviewPaint.style = Paint.Style.FILL
|
canvas.drawPath(path, reviewPaint)
|
||||||
val textWidth = StaticLayout.getDesiredWidth(countText, ChapterProvider.reviewPaint)
|
reviewPaint.style = Paint.Style.FILL
|
||||||
canvas.drawText(
|
canvas.drawText(
|
||||||
countText,
|
countText,
|
||||||
start + height / 6 + textWidth * 0.45f,
|
(start + height / 9 + end) / 2,
|
||||||
baseLine - height / 5,
|
baseLine - height * 0.23f,
|
||||||
ChapterProvider.reviewPaint
|
reviewPaint
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user