feat: 优化代码

pull/103/head
kunfei 5 years ago
parent e2d7fbba99
commit 6129c814ca
  1. 1
      app/src/main/res/values/strings.xml
  2. 107
      app/src/main/res/xml/pref_config_other.xml

@ -608,4 +608,5 @@
<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> <string name="aloud_config">朗读设置</string>
<string name="main_activity">主界面</string>
</resources> </resources>

@ -2,52 +2,65 @@
<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/main_activity"
android:key="@string/pk_auto_refresh" app:iconSpaceReserved="false">
android:summary="@string/ps_auto_refresh"
android:title="@string/pt_auto_refresh" <io.legado.app.lib.theme.prefs.ATESwitchPreference
app:iconSpaceReserved="false" /> android:defaultValue="false"
android:key="@string/pk_auto_refresh"
<io.legado.app.lib.theme.prefs.ATESwitchPreference android:summary="@string/ps_auto_refresh"
android:defaultValue="false" android:title="@string/pt_auto_refresh"
android:key="@string/pk_default_read" app:iconSpaceReserved="false" />
android:summary="@string/ps_default_read"
android:title="@string/pt_default_read" <io.legado.app.lib.theme.prefs.ATESwitchPreference
app:iconSpaceReserved="false" /> android:defaultValue="false"
android:key="@string/pk_default_read"
<io.legado.app.lib.theme.prefs.ATESwitchPreference android:summary="@string/ps_default_read"
android:defaultValue="true" android:title="@string/pt_default_read"
android:key="showRss" app:iconSpaceReserved="false" />
android:title="@string/show_rss"
app:iconSpaceReserved="false" /> <io.legado.app.lib.theme.prefs.ATESwitchPreference
android:defaultValue="true"
<Preference android:key="showRss"
android:key="threadCount" android:title="@string/show_rss"
android:title="@string/threads_num_title" app:iconSpaceReserved="false" />
app:iconSpaceReserved="false" />
</io.legado.app.lib.theme.prefs.ATEPreferenceCategory>
<Preference
android:key="downloadPath" <io.legado.app.lib.theme.prefs.ATEPreferenceCategory
android:title="@string/download_path" android:title="@string/other_setting"
app:iconSpaceReserved="false" /> app:iconSpaceReserved="false">
<Preference <Preference
android:key="cleanCache" android:key="threadCount"
android:title="@string/cleanCache" android:title="@string/threads_num_title"
app:iconSpaceReserved="false" /> app:iconSpaceReserved="false" />
<io.legado.app.lib.theme.prefs.ATESwitchPreference <Preference
android:defaultValue="true" android:key="downloadPath"
android:key="process_text" android:title="@string/download_path"
android:summary="@string/add_to_text_context_menu_s" app:iconSpaceReserved="false" />
android:title="@string/add_to_text_context_menu_t"
app:iconSpaceReserved="false" /> <Preference
android:key="cleanCache"
<io.legado.app.lib.theme.prefs.ATESwitchPreference android:title="@string/cleanCache"
android:defaultValue="false" app:iconSpaceReserved="false" />
android:key="recordLog"
android:title="@string/record_log" <io.legado.app.lib.theme.prefs.ATESwitchPreference
app:iconSpaceReserved="false" /> android:defaultValue="true"
android:key="process_text"
android:summary="@string/add_to_text_context_menu_s"
android:title="@string/add_to_text_context_menu_t"
app:iconSpaceReserved="false" />
<io.legado.app.lib.theme.prefs.ATESwitchPreference
android:defaultValue="false"
android:key="recordLog"
android:title="@string/record_log"
app:iconSpaceReserved="false" />
</io.legado.app.lib.theme.prefs.ATEPreferenceCategory>
</androidx.preference.PreferenceScreen> </androidx.preference.PreferenceScreen>
Loading…
Cancel
Save