diff --git a/app/src/main/java/io/legado/app/ui/readbook/config/ReadAloudDialog.kt b/app/src/main/java/io/legado/app/ui/readbook/config/ReadAloudDialog.kt index 58ab4a6a8..945ccc251 100644 --- a/app/src/main/java/io/legado/app/ui/readbook/config/ReadAloudDialog.kt +++ b/app/src/main/java/io/legado/app/ui/readbook/config/ReadAloudDialog.kt @@ -6,6 +6,7 @@ import android.view.View import android.view.ViewGroup import androidx.fragment.app.DialogFragment import io.legado.app.R +import kotlinx.android.synthetic.main.dialog_read_aloud.* class ReadAloudDialog : DialogFragment() { @@ -19,6 +20,12 @@ class ReadAloudDialog : DialogFragment() { override fun onViewCreated(view: View, savedInstanceState: Bundle?) { super.onViewCreated(view, savedInstanceState) + initData() + } + + private fun initData() { + + seek_tts_SpeechRate.setProgress(0) } } \ No newline at end of file diff --git a/app/src/main/res/layout/dialog_read_aloud.xml b/app/src/main/res/layout/dialog_read_aloud.xml index 866119a66..505344bfa 100644 --- a/app/src/main/res/layout/dialog_read_aloud.xml +++ b/app/src/main/res/layout/dialog_read_aloud.xml @@ -5,34 +5,58 @@ android:layout_height="match_parent" android:padding="10dp"> + + + + + + + + + android:text="@string/timer_m" /> @@ -84,7 +108,7 @@ ]]> 阅读 %d%% + %d分钟