标题单独绘制

pull/1625/head
kunfei 3 years ago
parent 089a21d7c3
commit 4678938511
  1. 4
      app/src/main/java/io/legado/app/ui/book/read/page/provider/ChapterProvider.kt

@ -286,8 +286,8 @@ object ChapterProvider {
)
var durY = when {
//标题y轴居中
isTitleWithNoContent -> ((visibleHeight - layout.lineCount * textPaint.textHeight) / 2)
isTitle -> y + titleTopSpacing
y == 0f && isTitleWithNoContent -> ((visibleHeight - layout.lineCount * textPaint.textHeight) / 2)
y == 0f && isTitle -> y + titleTopSpacing
else -> y
}
for (lineIndex in 0 until layout.lineCount) {

Loading…
Cancel
Save