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