|
@@ -40,6 +40,7 @@ class PageView(context: Context) : FrameLayout(context) {
|
|
|
private var tvBookName: BatteryView? = null
|
|
private var tvBookName: BatteryView? = null
|
|
|
private var tvTimeBattery: BatteryView? = null
|
|
private var tvTimeBattery: BatteryView? = null
|
|
|
private var tvTimeBatteryP: BatteryView? = null
|
|
private var tvTimeBatteryP: BatteryView? = null
|
|
|
|
|
+ private var tvTotalProgress1: BatteryView? = null
|
|
|
|
|
|
|
|
val headerHeight: Int
|
|
val headerHeight: Int
|
|
|
get() {
|
|
get() {
|
|
@@ -168,6 +169,12 @@ class PageView(context: Context) : FrameLayout(context) {
|
|
|
typeface = ChapterProvider.typeface
|
|
typeface = ChapterProvider.typeface
|
|
|
textSize = 12f
|
|
textSize = 12f
|
|
|
}
|
|
}
|
|
|
|
|
+ tvTotalProgress1 = getTipView(ReadTipConfig.totalProgress1)?.apply {
|
|
|
|
|
+ tag = ReadTipConfig.totalProgress1
|
|
|
|
|
+ isBattery = false
|
|
|
|
|
+ typeface = ChapterProvider.typeface
|
|
|
|
|
+ textSize = 12f
|
|
|
|
|
+ }
|
|
|
tvPageAndTotal = getTipView(ReadTipConfig.pageAndTotal)?.apply {
|
|
tvPageAndTotal = getTipView(ReadTipConfig.pageAndTotal)?.apply {
|
|
|
tag = ReadTipConfig.pageAndTotal
|
|
tag = ReadTipConfig.pageAndTotal
|
|
|
isBattery = false
|
|
isBattery = false
|
|
@@ -295,6 +302,7 @@ class PageView(context: Context) : FrameLayout(context) {
|
|
|
tvTitle?.text = textPage.title
|
|
tvTitle?.text = textPage.title
|
|
|
tvPage?.text = "${index.plus(1)}/$pageSize"
|
|
tvPage?.text = "${index.plus(1)}/$pageSize"
|
|
|
tvTotalProgress?.text = readProgress
|
|
tvTotalProgress?.text = readProgress
|
|
|
|
|
+ tvTotalProgress1?.text = "${textPage.chapterIndex.plus(1)}/${textPage.chapterSize}"
|
|
|
tvPageAndTotal?.text = "${index.plus(1)}/$pageSize $readProgress"
|
|
tvPageAndTotal?.text = "${index.plus(1)}/$pageSize $readProgress"
|
|
|
}
|
|
}
|
|
|
|
|
|