From 98d3b809df22f1e434f4eaef7ea9f9526e9e315c Mon Sep 17 00:00:00 2001 From: gedoor Date: Sun, 29 Nov 2020 19:47:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../read/page/provider/ChapterProvider.kt | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/app/src/main/java/io/legado/app/ui/book/read/page/provider/ChapterProvider.kt b/app/src/main/java/io/legado/app/ui/book/read/page/provider/ChapterProvider.kt index 0548a9711..c656162ef 100644 --- a/app/src/main/java/io/legado/app/ui/book/read/page/provider/ChapterProvider.kt +++ b/app/src/main/java/io/legado/app/ui/book/read/page/provider/ChapterProvider.kt @@ -23,20 +23,49 @@ import java.util.* @Suppress("DEPRECATION") object ChapterProvider { + @JvmStatic private var viewWidth = 0 + + @JvmStatic private var viewHeight = 0 + + @JvmStatic var paddingLeft = 0 + + @JvmStatic var paddingTop = 0 + + @JvmStatic var visibleWidth = 0 + + @JvmStatic var visibleHeight = 0 + + @JvmStatic var visibleRight = 0 + + @JvmStatic var visibleBottom = 0 + + @JvmStatic private var lineSpacingExtra = 0 + + @JvmStatic private var paragraphSpacing = 0 + + @JvmStatic private var titleTopSpacing = 0 + + @JvmStatic private var titleBottomSpacing = 0 + + @JvmStatic var typeface: Typeface = Typeface.SANS_SERIF + + @JvmStatic lateinit var titlePaint: TextPaint + + @JvmStatic lateinit var contentPaint: TextPaint init {