pull/32/head
kunfei 5 years ago
parent 76a912f5e9
commit faf62dba1f
  1. 7
      app/src/main/java/io/legado/app/ui/readbook/config/ReadAloudDialog.kt
  2. 30
      app/src/main/res/layout/dialog_read_aloud.xml
  3. 1
      app/src/main/res/values/strings.xml

@ -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)
}
}

@ -5,34 +5,58 @@
android:layout_height="match_parent"
android:padding="10dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:orientation="horizontal"
android:padding="8dp">
<androidx.appcompat.widget.AppCompatImageView
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_marginLeft="8dp"
android:layout_marginRight="8dp"
android:src="@drawable/ic_play_24dp"
android:tint="@color/tv_text_default" />
<androidx.appcompat.widget.AppCompatImageView
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_marginLeft="8dp"
android:layout_marginRight="8dp"
android:src="@drawable/ic_stop_black_24dp"
android:tint="@color/tv_text_default" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:padding="8dp"
android:gravity="center">
<androidx.appcompat.widget.AppCompatImageView
android:layout_width="30dp"
android:layout_height="30dp"
android:src="@drawable/ic_time_add_24dp"
android:tint="@color/tv_text_default" />
<io.legado.app.lib.theme.view.ATESeekBar
android:id="@+id/seek_timer"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:max="60" />
<TextView
android:layout_width="match_parent"
android:id="@+id/tv_timer"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:singleLine="true" />
android:text="@string/timer_m" />
</LinearLayout>
@ -84,7 +108,7 @@
</LinearLayout>
<io.legado.app.lib.theme.view.ATESeekBar
android:id="@+id/hpb_tts_SpeechRate"
android:id="@+id/seek_tts_SpeechRate"
android:layout_width="match_parent"
android:layout_height="30dp"
android:layout_marginStart="15dp"

@ -482,5 +482,6 @@
<string name="dsm_end"><![CDATA[>]]></string>
<string name="reading">阅读</string>
<string name="battery_show">%d%%</string>
<string name="timer_m">%d分钟</string>
</resources>

Loading…
Cancel
Save