|
|
@ -168,7 +168,7 @@ class PageView(context: Context, attrs: AttributeSet) : |
|
|
|
get() = ReadBook.durChapterPos() |
|
|
|
get() = ReadBook.durChapterPos() |
|
|
|
|
|
|
|
|
|
|
|
override fun setPageIndex(pageIndex: Int) { |
|
|
|
override fun setPageIndex(pageIndex: Int) { |
|
|
|
callBack.setPageIndex(pageIndex) |
|
|
|
ReadBook.setPageIndex(pageIndex) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
override fun getChapterPosition(): Int { |
|
|
|
override fun getChapterPosition(): Int { |
|
|
@ -196,19 +196,8 @@ class PageView(context: Context, attrs: AttributeSet) : |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
interface CallBack { |
|
|
|
interface CallBack { |
|
|
|
|
|
|
|
|
|
|
|
val isInitFinish: Boolean |
|
|
|
val isInitFinish: Boolean |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* 保存页数 |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
fun setPageIndex(pageIndex: Int) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* 点击屏幕中间 |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
fun clickCenter() |
|
|
|
fun clickCenter() |
|
|
|
|
|
|
|
|
|
|
|
fun screenOffTimerStart() |
|
|
|
fun screenOffTimerStart() |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|