From 2ef5fbc987dd63137eae55945299776f3bffbcbd Mon Sep 17 00:00:00 2001 From: kunfei Date: Sun, 18 Aug 2019 12:02:05 +0800 Subject: [PATCH] up --- .../main/java/io/legado/app/ui/widget/page/ContentView.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/ui/widget/page/ContentView.kt b/app/src/main/java/io/legado/app/ui/widget/page/ContentView.kt index c9df8dcd8..08db472a9 100644 --- a/app/src/main/java/io/legado/app/ui/widget/page/ContentView.kt +++ b/app/src/main/java/io/legado/app/ui/widget/page/ContentView.kt @@ -20,9 +20,12 @@ class ContentView : FrameLayout { init { inflate(context, R.layout.view_book_page, this) - page_panel.horizontalPadding = 16.dp + upStyle() } + fun upStyle() { + page_panel.horizontalPadding = 16.dp + } fun setContent(text: CharSequence?) { content_text_view.text = text