@ -145,5 +145,6 @@ class ContentView : FrameLayout {
interface CallBack {
fun scrollToLine(line: Int)
fun scrollToLast()
}
@ -228,6 +228,12 @@ class PageView(context: Context, attrs: AttributeSet) :
override fun scrollToLast() {
callback?.textChapter()?.let {
callback?.setPageIndex(it.lastIndex())
fun chapterSize(): Int
fun durChapterIndex(): Int