标题单独绘制

This commit is contained in:
kunfei
2022-02-13 19:31:55 +08:00
parent ec068eab8a
commit 42a1770bcd
@@ -291,7 +291,7 @@ object ChapterProvider {
val textPage = textPages.last()
if (textPage.lineSize == 0) {
val ty = (visibleHeight - layout.lineCount * textPaint.textHeight) / 2
if (ty > 0) ty else titleTopSpacing.toFloat()
if (ty > titleTopSpacing) ty else titleTopSpacing.toFloat()
} else {
var textLayoutHeight = layout.lineCount * textPaint.textHeight
val fistLine = textPage.getLine(0)