pull/32/head
kunfei 5 years ago
parent 70e7c91fa6
commit 5b0669922d
  1. 4
      app/src/main/java/io/legado/app/ui/widget/page/ContentView.kt
  2. BIN
      app/src/main/res/drawable/bg1.jpg

@ -1,6 +1,7 @@
package io.legado.app.ui.widget.page package io.legado.app.ui.widget.page
import android.content.Context import android.content.Context
import android.graphics.Color
import android.util.AttributeSet import android.util.AttributeSet
import android.widget.FrameLayout import android.widget.FrameLayout
import io.legado.app.R import io.legado.app.R
@ -19,12 +20,13 @@ class ContentView : FrameLayout {
init { init {
inflate(context, R.layout.view_book_page, this) inflate(context, R.layout.view_book_page, this)
setBackgroundColor(Color.WHITE)
upStyle() upStyle()
} }
fun upStyle() { fun upStyle() {
page_panel.horizontalPadding = 16.dp page_panel.horizontalPadding = 16.dp
page_panel.setBackgroundResource(R.drawable.bg1)
} }
fun upTime() { fun upTime() {

Binary file not shown.

After

Width:  |  Height:  |  Size: 312 KiB

Loading…
Cancel
Save