From c4245e171c50cbeea781e64f11456352e6c0f1d4 Mon Sep 17 00:00:00 2001 From: kunfei Date: Thu, 29 Aug 2019 22:56:54 +0800 Subject: [PATCH] up --- app/src/main/java/io/legado/app/ui/widget/page/ContentView.kt | 1 + app/src/main/res/layout/view_book_page.xml | 1 + 2 files changed, 2 insertions(+) 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 2608a5f94..121280b9e 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 @@ -40,6 +40,7 @@ class ContentView : FrameLayout { setBackgroundColor(context.getCompatColor(R.color.background)) addView(bgImage, LayoutParams(matchParent, matchParent)) inflate(context, R.layout.view_book_page, this) + top_bar.layoutParams.height = context.getStatusBarHeight() upStyle() upTime() content_text_view.customSelectionActionModeCallback = diff --git a/app/src/main/res/layout/view_book_page.xml b/app/src/main/res/layout/view_book_page.xml index db8340877..59784756f 100644 --- a/app/src/main/res/layout/view_book_page.xml +++ b/app/src/main/res/layout/view_book_page.xml @@ -12,6 +12,7 @@ android:id="@+id/top_bar" android:layout_width="match_parent" android:layout_height="wrap_content" + android:gravity="center_vertical" android:orientation="horizontal">