|
|
@ -22,6 +22,10 @@ class PageView(context: Context, attrs: AttributeSet) : FrameLayout(context, att |
|
|
|
private var nextPage: ContentView? = null |
|
|
|
private var nextPage: ContentView? = null |
|
|
|
|
|
|
|
|
|
|
|
init { |
|
|
|
init { |
|
|
|
|
|
|
|
prevPage = ContentView(context) |
|
|
|
|
|
|
|
addView(prevPage) |
|
|
|
|
|
|
|
nextPage = ContentView(context) |
|
|
|
|
|
|
|
addView(nextPage) |
|
|
|
curPage = ContentView(context) |
|
|
|
curPage = ContentView(context) |
|
|
|
addView(curPage) |
|
|
|
addView(curPage) |
|
|
|
|
|
|
|
|
|
|
@ -73,6 +77,12 @@ class PageView(context: Context, attrs: AttributeSet) : FrameLayout(context, att |
|
|
|
return true |
|
|
|
return true |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fun upStyle() { |
|
|
|
|
|
|
|
curPage?.upStyle() |
|
|
|
|
|
|
|
prevPage?.upStyle() |
|
|
|
|
|
|
|
nextPage?.upStyle() |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
interface CallBack { |
|
|
|
interface CallBack { |
|
|
|
fun durChapterIndex(): Int |
|
|
|
fun durChapterIndex(): Int |
|
|
|
fun textChapter(chapterOnDur: Int = 0): TextChapter? |
|
|
|
fun textChapter(chapterOnDur: Int = 0): TextChapter? |
|
|
|