From 3b0d9ed5ad31a7864ac88478531fec32aad5d013 Mon Sep 17 00:00:00 2001 From: kunfei Date: Fri, 23 Aug 2019 12:14:11 +0800 Subject: [PATCH] up --- .../io/legado/app/ui/readbook/ReadMenu.kt | 7 -- app/src/main/res/layout/dialog_read_aloud.xml | 91 ++++++++++++++++++- 2 files changed, 90 insertions(+), 8 deletions(-) diff --git a/app/src/main/java/io/legado/app/ui/readbook/ReadMenu.kt b/app/src/main/java/io/legado/app/ui/readbook/ReadMenu.kt index ef58c8445..5e8320c78 100644 --- a/app/src/main/java/io/legado/app/ui/readbook/ReadMenu.kt +++ b/app/src/main/java/io/legado/app/ui/readbook/ReadMenu.kt @@ -5,11 +5,9 @@ import android.util.AttributeSet import android.widget.FrameLayout import android.widget.SeekBar import io.legado.app.R -import io.legado.app.service.ReadAloudService import io.legado.app.utils.isNightTheme import kotlinx.android.synthetic.main.view_read_menu.view.* import org.jetbrains.anko.sdk27.listeners.onClick -import org.jetbrains.anko.sdk27.listeners.onLongClick class ReadMenu : FrameLayout { @@ -61,11 +59,6 @@ class ReadMenu : FrameLayout { //朗读 fab_read_aloud.onClick { callback?.clickReadAloud() } - //长按停止朗读 - fab_read_aloud.onLongClick { - ReadAloudService.stop(context) - true - } //自动翻页 fabAutoPage.onClick { callback?.autoPage() } diff --git a/app/src/main/res/layout/dialog_read_aloud.xml b/app/src/main/res/layout/dialog_read_aloud.xml index d829e291c..866119a66 100644 --- a/app/src/main/res/layout/dialog_read_aloud.xml +++ b/app/src/main/res/layout/dialog_read_aloud.xml @@ -2,6 +2,95 @@ + android:layout_height="match_parent" + android:padding="10dp"> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file