|
|
@ -105,22 +105,22 @@ class PageView(context: Context) : FrameLayout(context) { |
|
|
|
tvFooterLeft.tag = null |
|
|
|
tvFooterLeft.tag = null |
|
|
|
tvFooterMiddle.tag = null |
|
|
|
tvFooterMiddle.tag = null |
|
|
|
tvFooterRight.tag = null |
|
|
|
tvFooterRight.tag = null |
|
|
|
ReadTipConfig.apply { |
|
|
|
llHeader.isGone = when (ReadTipConfig.headerMode) { |
|
|
|
tvHeaderLeft.isGone = tipHeaderLeft == none |
|
|
|
|
|
|
|
tvHeaderRight.isGone = tipHeaderRight == none |
|
|
|
|
|
|
|
tvHeaderMiddle.isGone = tipHeaderMiddle == none |
|
|
|
|
|
|
|
tvFooterLeft.isInvisible = tipFooterLeft == none |
|
|
|
|
|
|
|
tvFooterRight.isGone = tipFooterRight == none |
|
|
|
|
|
|
|
tvFooterMiddle.isGone = tipFooterMiddle == none |
|
|
|
|
|
|
|
llHeader.isGone = when (headerMode) { |
|
|
|
|
|
|
|
1 -> false |
|
|
|
1 -> false |
|
|
|
2 -> true |
|
|
|
2 -> true |
|
|
|
else -> !ReadBookConfig.hideStatusBar |
|
|
|
else -> !ReadBookConfig.hideStatusBar |
|
|
|
} |
|
|
|
} |
|
|
|
llFooter.isGone = when (footerMode) { |
|
|
|
llFooter.isGone = when (ReadTipConfig.footerMode) { |
|
|
|
1 -> true |
|
|
|
1 -> true |
|
|
|
else -> false |
|
|
|
else -> false |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
ReadTipConfig.apply { |
|
|
|
|
|
|
|
tvHeaderLeft.isGone = tipHeaderLeft == none |
|
|
|
|
|
|
|
tvHeaderRight.isGone = tipHeaderRight == none |
|
|
|
|
|
|
|
tvHeaderMiddle.isGone = tipHeaderMiddle == none |
|
|
|
|
|
|
|
tvFooterLeft.isInvisible = tipFooterLeft == none |
|
|
|
|
|
|
|
tvFooterRight.isGone = tipFooterRight == none |
|
|
|
|
|
|
|
tvFooterMiddle.isGone = tipFooterMiddle == none |
|
|
|
} |
|
|
|
} |
|
|
|
tvTitle = getTipView(ReadTipConfig.chapterTitle)?.apply { |
|
|
|
tvTitle = getTipView(ReadTipConfig.chapterTitle)?.apply { |
|
|
|
tag = ReadTipConfig.chapterTitle |
|
|
|
tag = ReadTipConfig.chapterTitle |
|
|
|