pull/32/head
kunfei 5 years ago
parent ebbc4b7325
commit c4245e171c
  1. 1
      app/src/main/java/io/legado/app/ui/widget/page/ContentView.kt
  2. 1
      app/src/main/res/layout/view_book_page.xml

@ -40,6 +40,7 @@ class ContentView : FrameLayout {
setBackgroundColor(context.getCompatColor(R.color.background)) setBackgroundColor(context.getCompatColor(R.color.background))
addView(bgImage, LayoutParams(matchParent, matchParent)) addView(bgImage, LayoutParams(matchParent, matchParent))
inflate(context, R.layout.view_book_page, this) inflate(context, R.layout.view_book_page, this)
top_bar.layoutParams.height = context.getStatusBarHeight()
upStyle() upStyle()
upTime() upTime()
content_text_view.customSelectionActionModeCallback = content_text_view.customSelectionActionModeCallback =

@ -12,6 +12,7 @@
android:id="@+id/top_bar" android:id="@+id/top_bar"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:gravity="center_vertical"
android:orientation="horizontal"> android:orientation="horizontal">
<TextView <TextView

Loading…
Cancel
Save