|
|
@ -35,7 +35,6 @@ class ContentTextView(context: Context, attrs: AttributeSet?) : View(context, at |
|
|
|
private val maxScrollOffset = 100f |
|
|
|
private val maxScrollOffset = 100f |
|
|
|
private var pageOffset = 0f |
|
|
|
private var pageOffset = 0f |
|
|
|
private var linePos = 0 |
|
|
|
private var linePos = 0 |
|
|
|
private var isLastPage = false |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
init { |
|
|
|
init { |
|
|
|
callBack = activity as CallBack |
|
|
|
callBack = activity as CallBack |
|
|
@ -163,7 +162,6 @@ class ContentTextView(context: Context, attrs: AttributeSet?) : View(context, at |
|
|
|
fun resetPageOffset() { |
|
|
|
fun resetPageOffset() { |
|
|
|
pageOffset = 0f |
|
|
|
pageOffset = 0f |
|
|
|
linePos = 0 |
|
|
|
linePos = 0 |
|
|
|
isLastPage = false |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
fun selectText(x: Float, y: Float): Boolean { |
|
|
|
fun selectText(x: Float, y: Float): Boolean { |
|
|
|