feat: 优化代码

pull/103/head
kunfei 5 years ago
parent d98b1705d4
commit e2d7fbba99
  1. 1
      app/src/main/res/values/strings.xml
  2. 40
      app/src/main/res/xml/pref_config_aloud.xml

@ -607,4 +607,5 @@
<string name="record_log">记录日志</string>
<string name="chinese_converter">中文简繁体转换</string>
<string name="chage_icon_error">图标为矢量图标,Android8.0以前不支持</string>
<string name="aloud_config">朗读设置</string>
</resources>

@ -2,24 +2,30 @@
<androidx.preference.PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<io.legado.app.lib.theme.prefs.ATESwitchPreference
android:defaultValue="false"
android:title="@string/read_aloud_by_page"
android:key="readAloudByPage"
app:iconSpaceReserved="false" />
<io.legado.app.lib.theme.prefs.ATEPreferenceCategory
android:title="@string/aloud_config"
app:iconSpaceReserved="false">
<io.legado.app.lib.theme.prefs.ATESwitchPreference
android:defaultValue="false"
android:title="@string/read_aloud_on_line"
android:key="readAloudOnLine"
app:iconSpaceReserved="false" />
<io.legado.app.lib.theme.prefs.ATESwitchPreference
android:defaultValue="false"
android:title="@string/read_aloud_by_page"
android:key="readAloudByPage"
app:iconSpaceReserved="false" />
<androidx.preference.ListPreference
android:key="ttsSpeechPer"
android:title="@string/tone_colour"
android:defaultValue="0"
android:entries="@array/tts_speech_per"
android:entryValues="@array/tts_speech_per_value"
app:iconSpaceReserved="false" />
<io.legado.app.lib.theme.prefs.ATESwitchPreference
android:defaultValue="false"
android:title="@string/read_aloud_on_line"
android:key="readAloudOnLine"
app:iconSpaceReserved="false" />
<androidx.preference.ListPreference
android:key="ttsSpeechPer"
android:title="@string/tone_colour"
android:defaultValue="0"
android:entries="@array/tts_speech_per"
android:entryValues="@array/tts_speech_per_value"
app:iconSpaceReserved="false" />
</io.legado.app.lib.theme.prefs.ATEPreferenceCategory>
</androidx.preference.PreferenceScreen>
Loading…
Cancel
Save