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

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