|
|
@ -32,7 +32,9 @@ class ContentView(context: Context) : FrameLayout(context) { |
|
|
|
private var tvPageAndTotal: BatteryView? = null |
|
|
|
private var tvPageAndTotal: BatteryView? = null |
|
|
|
|
|
|
|
|
|
|
|
val headerHeight: Int |
|
|
|
val headerHeight: Int |
|
|
|
get() = if (ReadBookConfig.hideStatusBar) ll_header.height else context.statusBarHeight |
|
|
|
get() = if (ReadBookConfig.hideStatusBar) { |
|
|
|
|
|
|
|
if (ll_header.isGone) 0 else ll_header.height |
|
|
|
|
|
|
|
} else context.statusBarHeight |
|
|
|
|
|
|
|
|
|
|
|
init { |
|
|
|
init { |
|
|
|
//设置背景防止切换背景时文字重叠 |
|
|
|
//设置背景防止切换背景时文字重叠 |
|
|
|