This commit is contained in:
kunfei
2022-09-06 20:47:24 +08:00
parent 6f7581a254
commit 93e0cb7eea
2 changed files with 9 additions and 1 deletions

View File

@@ -283,6 +283,14 @@ class ContentTextView(context: Context, attrs: AttributeSet?) : View(context, at
}
}
/**
* 单击
* @return true:已处理, false:未处理
*/
fun click(x: Float, y: Float): Boolean {
return false
}
/**
* 选择文字
*/

View File

@@ -313,7 +313,7 @@ class PageView(context: Context) : FrameLayout(context) {
* @return true:已处理, false:未处理
*/
fun onClick(x: Float, y: Float): Boolean {
return false
return binding.contentTextView.click(x, y - headerHeight)
}
/**