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="chage_icon_error">图标为矢量图标,Android8.0以前不支持</string>
<string name="aloud_config">朗读设置</string>
<string name="main_activity">主界面</string>
</resources>

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