From 2844bd4c21eb70a966df4757660cfe0a5bcbb4f7 Mon Sep 17 00:00:00 2001 From: kunfei Date: Fri, 21 Feb 2020 19:50:39 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../io/legado/app/ui/book/read/page/ContentTextView.kt | 9 +++++++++ .../java/io/legado/app/ui/book/read/page/ContentView.kt | 4 ++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/io/legado/app/ui/book/read/page/ContentTextView.kt b/app/src/main/java/io/legado/app/ui/book/read/page/ContentTextView.kt index 6b946f7d0..a170ac02a 100644 --- a/app/src/main/java/io/legado/app/ui/book/read/page/ContentTextView.kt +++ b/app/src/main/java/io/legado/app/ui/book/read/page/ContentTextView.kt @@ -105,4 +105,13 @@ class ContentTextView(context: Context, attrs: AttributeSet?) : View(context, at } return null } + + fun selectStartMove(x: Float, y: Float) { + + } + + fun selectEndMove(x: Float, y: Float) { + + } + } diff --git a/app/src/main/java/io/legado/app/ui/book/read/page/ContentView.kt b/app/src/main/java/io/legado/app/ui/book/read/page/ContentView.kt index 1651f7d6e..4f6a0dad4 100644 --- a/app/src/main/java/io/legado/app/ui/book/read/page/ContentView.kt +++ b/app/src/main/java/io/legado/app/ui/book/read/page/ContentView.kt @@ -126,11 +126,11 @@ class ContentView : FrameLayout { } fun selectStartMove(x: Float, y: Float) { - + content_text_view.selectStartMove(x, y) } fun selectEndMove(x: Float, y: Float) { - + content_text_view.selectEndMove(x, y) } fun scrollTo(pos: Int?) {