From e13c0e715a6e4551140b68122834117fcd847976 Mon Sep 17 00:00:00 2001 From: kunfei Date: Fri, 20 Sep 2019 17:47:37 +0800 Subject: [PATCH] up --- app/src/main/java/io/legado/app/ui/widget/page/PageView.kt | 4 ++++ app/src/main/res/layout/view_book_page.xml | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/ui/widget/page/PageView.kt b/app/src/main/java/io/legado/app/ui/widget/page/PageView.kt index cdc870198..b2481ddbe 100644 --- a/app/src/main/java/io/legado/app/ui/widget/page/PageView.kt +++ b/app/src/main/java/io/legado/app/ui/widget/page/PageView.kt @@ -112,6 +112,10 @@ class PageView(context: Context, attrs: AttributeSet) : FrameLayout(context, att pageDelegate?.scroll() } + override fun onInterceptTouchEvent(ev: MotionEvent?): Boolean { + return true + } + @SuppressLint("ClickableViewAccessibility") override fun onTouchEvent(event: MotionEvent): Boolean { return pageDelegate?.onTouch(event) ?: super.onTouchEvent(event) diff --git a/app/src/main/res/layout/view_book_page.xml b/app/src/main/res/layout/view_book_page.xml index 59784756f..eb27614ad 100644 --- a/app/src/main/res/layout/view_book_page.xml +++ b/app/src/main/res/layout/view_book_page.xml @@ -32,7 +32,8 @@ android:id="@+id/content_text_view" android:layout_width="match_parent" android:layout_height="0dp" - android:layout_weight="1" /> + android:layout_weight="1" + android:textIsSelectable="true" />