This commit is contained in:
kunfei
2022-09-06 20:47:24 +08:00
parent 4335047895
commit 8d1523eff5
2 changed files with 9 additions and 1 deletions
@@ -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
}
/** /**
* 选择文字 * 选择文字
*/ */
@@ -313,7 +313,7 @@ class PageView(context: Context) : FrameLayout(context) {
* @return true:已处理, false:未处理 * @return true:已处理, false:未处理
*/ */
fun onClick(x: Float, y: Float): Boolean { fun onClick(x: Float, y: Float): Boolean {
return false return binding.contentTextView.click(x, y - headerHeight)
} }
/** /**