2020-08-11 16:07:45 +08:00
|
|
|
<?xml version="1.0" encoding="utf-8"?><!--suppress AndroidElementNotAllowed -->
|
2020-04-05 13:15:03 +08:00
|
|
|
<androidx.preference.PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto">
|
2021-08-19 17:05:17 +08:00
|
|
|
<androidx.preference.PreferenceCategory android:title="@string/title_account">
|
2020-04-05 13:15:03 +08:00
|
|
|
<ListPreference
|
|
|
|
|
android:icon="@drawable/ic_round_account_circle"
|
|
|
|
|
android:key="switch_account"
|
2020-08-11 16:07:45 +08:00
|
|
|
android:title="@string/title_switch_account" />
|
2020-04-05 13:15:03 +08:00
|
|
|
<Preference
|
|
|
|
|
android:icon="@drawable/ic_round_add_circle_green"
|
2021-08-19 17:05:17 +08:00
|
|
|
android:summary="@string/tip_account_error"
|
|
|
|
|
android:title="@string/title_new_account">
|
2020-08-11 16:07:45 +08:00
|
|
|
<intent
|
2021-08-19 17:05:17 +08:00
|
|
|
android:action="android.intent.action.VIEW"
|
2020-08-11 16:07:45 +08:00
|
|
|
android:targetClass="com.huanchengfly.tieba.post.activities.LoginActivity"
|
2021-08-19 17:05:17 +08:00
|
|
|
android:targetPackage="com.huanchengfly.tieba.post" />
|
2020-04-05 13:15:03 +08:00
|
|
|
</Preference>
|
|
|
|
|
<Preference
|
|
|
|
|
android:icon="@drawable/ic_close_circle_red"
|
|
|
|
|
android:key="exit_account"
|
|
|
|
|
android:title="@string/title_exit_account" />
|
|
|
|
|
<Preference
|
|
|
|
|
android:icon="@drawable/ic_document_green"
|
|
|
|
|
android:key="copy_bduss"
|
2021-08-19 17:05:17 +08:00
|
|
|
android:summary="@string/summary_copy_bduss"
|
|
|
|
|
android:title="@string/title_copy_bduss" />
|
2020-04-05 13:15:03 +08:00
|
|
|
<EditTextPreference
|
|
|
|
|
android:icon="@drawable/ic_round_more_blue"
|
|
|
|
|
android:key="little_tail"
|
|
|
|
|
android:title="@string/title_my_tail" />
|
|
|
|
|
<Preference
|
|
|
|
|
android:enabled="false"
|
|
|
|
|
android:layout="@layout/layout_preference_bottom" />
|
|
|
|
|
</androidx.preference.PreferenceCategory>
|
|
|
|
|
|
2020-08-11 16:07:45 +08:00
|
|
|
<androidx.preference.PreferenceCategory android:title="@string/title_block_settings">
|
2020-04-05 13:15:03 +08:00
|
|
|
<Preference
|
|
|
|
|
android:icon="@drawable/ic_round_remove_circle"
|
|
|
|
|
android:key="black_list"
|
|
|
|
|
android:title="@string/title_black_list" />
|
|
|
|
|
<Preference
|
|
|
|
|
android:icon="@drawable/ic_round_check_circle"
|
|
|
|
|
android:key="white_list"
|
|
|
|
|
android:title="@string/title_white_list" />
|
|
|
|
|
<Preference
|
|
|
|
|
android:enabled="false"
|
|
|
|
|
android:layout="@layout/layout_preference_bottom" />
|
|
|
|
|
</androidx.preference.PreferenceCategory>
|
|
|
|
|
|
2020-08-11 16:07:45 +08:00
|
|
|
<androidx.preference.PreferenceCategory android:title="@string/title_settings_read_habit">
|
2020-04-05 13:15:03 +08:00
|
|
|
<ListPreference
|
2021-08-19 17:05:17 +08:00
|
|
|
android:defaultValue="0"
|
2020-04-05 13:15:03 +08:00
|
|
|
android:entries="@array/image_load_type_entries"
|
|
|
|
|
android:entryValues="@array/image_load_type_entry_values"
|
2021-08-19 17:05:17 +08:00
|
|
|
android:icon="@drawable/ic_round_photo_size_select_actual"
|
|
|
|
|
android:key="image_load_type"
|
2020-04-05 13:15:03 +08:00
|
|
|
android:title="@string/title_settings_image_load_type" />
|
|
|
|
|
|
|
|
|
|
<ListPreference
|
2021-08-19 17:05:17 +08:00
|
|
|
android:defaultValue="0"
|
2020-04-05 13:15:03 +08:00
|
|
|
android:entries="@array/sort_type_entries"
|
|
|
|
|
android:entryValues="@array/sort_type_entry_values"
|
2021-08-19 17:05:17 +08:00
|
|
|
android:icon="@drawable/ic_round_calendar_view_day"
|
2020-04-05 13:15:03 +08:00
|
|
|
android:key="default_sort_type"
|
2021-08-19 17:05:17 +08:00
|
|
|
android:summaryOff="@string/summary_default_sort_type"
|
|
|
|
|
android:title="@string/title_settings_default_sort_type" />
|
2020-04-05 13:15:03 +08:00
|
|
|
|
|
|
|
|
<SwitchPreference
|
|
|
|
|
android:defaultValue="true"
|
2021-08-19 17:05:17 +08:00
|
|
|
android:icon="@drawable/ic_quick_yellow"
|
2020-04-05 13:15:03 +08:00
|
|
|
android:key="showShortcutInThread"
|
|
|
|
|
android:summaryOff="@string/tip_show_shortcut_in_thread"
|
2021-08-19 17:05:17 +08:00
|
|
|
android:summaryOn="@string/tip_show_shortcut_in_thread_on"
|
|
|
|
|
android:title="@string/settings_show_shortcut" />
|
2020-04-05 13:15:03 +08:00
|
|
|
|
|
|
|
|
<SwitchPreference
|
|
|
|
|
android:defaultValue="true"
|
2021-08-19 17:05:17 +08:00
|
|
|
android:icon="@drawable/ic_round_star_yellow"
|
2020-04-05 13:15:03 +08:00
|
|
|
android:key="collect_thread_see_lz"
|
|
|
|
|
android:summaryOff="@string/tip_collect_thread_see_lz"
|
2021-08-19 17:05:17 +08:00
|
|
|
android:summaryOn="@string/tip_collect_thread_see_lz_on"
|
|
|
|
|
android:title="@string/settings_collect_thread_see_lz" />
|
2020-04-05 13:15:03 +08:00
|
|
|
|
|
|
|
|
<SwitchPreference
|
|
|
|
|
android:defaultValue="true"
|
2021-08-19 17:05:17 +08:00
|
|
|
android:icon="@drawable/ic_arrow_dropup_circle"
|
2020-04-05 13:15:03 +08:00
|
|
|
android:key="show_top_forum_in_normal_list"
|
2021-08-19 17:05:17 +08:00
|
|
|
android:summary="@string/summary_show_top_forum_in_normal_list"
|
|
|
|
|
android:title="@string/title_settings_show_top_forum_in_normal_list" />
|
2020-04-05 13:15:03 +08:00
|
|
|
|
|
|
|
|
<SwitchPreference
|
|
|
|
|
android:defaultValue="false"
|
2021-08-19 17:05:17 +08:00
|
|
|
android:icon="@drawable/ic_round_verified"
|
2020-04-05 13:15:03 +08:00
|
|
|
android:key="show_both_username_and_nickname"
|
|
|
|
|
android:title="@string/title_show_both_username_and_nickname" />
|
|
|
|
|
|
2020-08-05 20:55:37 +08:00
|
|
|
<SwitchPreference
|
|
|
|
|
android:defaultValue="true"
|
2021-08-19 17:05:17 +08:00
|
|
|
android:icon="@drawable/ic_round_hourglass_full"
|
2020-08-05 20:55:37 +08:00
|
|
|
android:key="loadPictureWhenScroll"
|
|
|
|
|
android:title="@string/title_load_picture_when_scroll" />
|
|
|
|
|
|
2021-02-01 18:41:17 +08:00
|
|
|
<SwitchPreference
|
|
|
|
|
android:defaultValue="false"
|
2021-08-19 17:05:17 +08:00
|
|
|
android:icon="@drawable/ic_round_view_carousel_white"
|
2021-02-01 18:41:17 +08:00
|
|
|
android:key="homePageScroll"
|
|
|
|
|
android:title="@string/title_home_page_scroll" />
|
|
|
|
|
|
|
|
|
|
<SwitchPreference
|
2021-02-01 18:43:53 +08:00
|
|
|
android:defaultValue="false"
|
2021-08-19 17:05:17 +08:00
|
|
|
android:icon="@drawable/ic_round_whatshot"
|
2021-02-01 18:43:53 +08:00
|
|
|
android:key="hideHotMessageList"
|
|
|
|
|
android:title="@string/title_hide_hot_message_list" />
|
2021-02-01 18:41:17 +08:00
|
|
|
|
2022-06-03 20:05:29 +08:00
|
|
|
<SwitchPreference
|
|
|
|
|
android:defaultValue="true"
|
|
|
|
|
android:icon="@drawable/ic_round_warning"
|
|
|
|
|
android:key="postOrReplyWarning"
|
|
|
|
|
android:title="@string/title_post_or_reply_warning" />
|
|
|
|
|
|
2021-06-12 22:24:45 +08:00
|
|
|
<ListPreference
|
|
|
|
|
android:defaultValue="post"
|
2021-08-19 17:05:17 +08:00
|
|
|
android:entries="@array/forum_fab_function_name_values"
|
|
|
|
|
android:entryValues="@array/forum_fab_function_values"
|
2021-08-19 16:57:31 +08:00
|
|
|
android:icon="@drawable/ic_round_exit_to_app"
|
2021-08-19 17:05:17 +08:00
|
|
|
android:key="forumFabFunction"
|
2021-06-12 22:24:45 +08:00
|
|
|
android:title="@string/settings_forum_fab_function" />
|
|
|
|
|
|
2021-08-15 19:22:28 +08:00
|
|
|
<Preference
|
|
|
|
|
android:icon="@drawable/ic_round_extension"
|
|
|
|
|
android:key="plugin_manage"
|
|
|
|
|
android:title="@string/title_plugin_manage">
|
|
|
|
|
<intent
|
2021-08-19 17:05:17 +08:00
|
|
|
android:action="android.intent.action.VIEW"
|
2021-08-15 19:22:28 +08:00
|
|
|
android:targetClass="com.huanchengfly.tieba.post.activities.PluginManageActivity"
|
2021-08-19 17:05:17 +08:00
|
|
|
android:targetPackage="com.huanchengfly.tieba.post" />
|
2021-08-15 19:22:28 +08:00
|
|
|
</Preference>
|
|
|
|
|
|
2020-04-05 13:15:03 +08:00
|
|
|
<Preference
|
|
|
|
|
android:enabled="false"
|
|
|
|
|
android:layout="@layout/layout_preference_bottom" />
|
|
|
|
|
</androidx.preference.PreferenceCategory>
|
|
|
|
|
|
2020-08-11 16:07:45 +08:00
|
|
|
<androidx.preference.PreferenceCategory android:title="@string/title_settings_custom">
|
2021-08-19 16:57:31 +08:00
|
|
|
<Preference
|
|
|
|
|
android:icon="@drawable/ic_round_font_download"
|
|
|
|
|
android:key="font_size"
|
|
|
|
|
android:title="@string/title_custom_font_size">
|
|
|
|
|
<intent
|
2021-08-19 17:05:17 +08:00
|
|
|
android:action="android.intent.action.VIEW"
|
2021-08-19 16:57:31 +08:00
|
|
|
android:targetClass="com.huanchengfly.tieba.post.activities.AppFontSizeActivity"
|
2021-08-19 17:05:17 +08:00
|
|
|
android:targetPackage="com.huanchengfly.tieba.post" />
|
2021-08-19 16:57:31 +08:00
|
|
|
</Preference>
|
|
|
|
|
|
2020-04-05 13:15:03 +08:00
|
|
|
<ListPreference
|
2021-08-19 17:05:17 +08:00
|
|
|
android:defaultValue="dark"
|
2020-04-05 13:15:03 +08:00
|
|
|
android:entries="@array/dark_theme_names"
|
|
|
|
|
android:entryValues="@array/dark_theme_values"
|
2021-08-19 17:05:17 +08:00
|
|
|
android:icon="@drawable/ic_round_brightness_2_green"
|
|
|
|
|
android:key="dark_theme"
|
2020-04-05 13:15:03 +08:00
|
|
|
android:title="@string/settings_night_mode" />
|
|
|
|
|
|
|
|
|
|
<SwitchPreference
|
|
|
|
|
android:defaultValue="true"
|
2021-08-19 17:05:17 +08:00
|
|
|
android:icon="@drawable/ic_round_brightness_auto"
|
2020-04-05 13:15:03 +08:00
|
|
|
android:key="follow_system_night"
|
|
|
|
|
android:title="@string/title_settings_follow_system_night" />
|
|
|
|
|
|
|
|
|
|
<SwitchPreference
|
|
|
|
|
android:defaultValue="true"
|
2021-08-19 17:05:17 +08:00
|
|
|
android:icon="@drawable/ic_beaker"
|
2020-04-05 13:15:03 +08:00
|
|
|
android:key="status_bar_darker"
|
2021-08-19 17:05:17 +08:00
|
|
|
android:summary="@string/tip_status_bar_darker"
|
|
|
|
|
android:title="@string/settings_status_bar_darker" />
|
2020-04-05 13:15:03 +08:00
|
|
|
|
2021-06-12 22:06:10 +08:00
|
|
|
<SwitchPreference
|
|
|
|
|
android:defaultValue="true"
|
2021-08-19 17:05:17 +08:00
|
|
|
android:key="listItemsBackgroundIntermixed"
|
2021-06-12 22:06:10 +08:00
|
|
|
android:title="@string/settings_list_items_background_intermixed" />
|
|
|
|
|
|
2020-04-05 13:15:03 +08:00
|
|
|
<SwitchPreference
|
2021-08-19 17:05:17 +08:00
|
|
|
android:defaultValue="false"
|
2020-04-05 13:15:03 +08:00
|
|
|
android:icon="@drawable/ic_forum_single_blue"
|
|
|
|
|
android:key="listSingle"
|
|
|
|
|
android:title="@string/settings_forum_single" />
|
|
|
|
|
|
|
|
|
|
<SwitchPreference
|
|
|
|
|
android:defaultValue="false"
|
2021-08-19 17:05:17 +08:00
|
|
|
android:icon="@drawable/ic_round_explore"
|
2020-04-05 13:15:03 +08:00
|
|
|
android:key="hideExplore"
|
|
|
|
|
android:title="@string/title_hide_explore" />
|
|
|
|
|
|
|
|
|
|
<androidx.preference.SeekBarPreference
|
|
|
|
|
android:defaultValue="8"
|
2021-08-19 17:05:17 +08:00
|
|
|
android:icon="@drawable/ic_round_rounded_corner"
|
2020-04-05 13:15:03 +08:00
|
|
|
android:key="radius"
|
2021-08-19 17:05:17 +08:00
|
|
|
android:max="16"
|
|
|
|
|
android:title="@string/title_preference_radius"
|
|
|
|
|
app:min="0"
|
|
|
|
|
app:showSeekBarValue="true" />
|
2020-04-05 13:15:03 +08:00
|
|
|
|
|
|
|
|
<Preference
|
|
|
|
|
android:enabled="false"
|
|
|
|
|
android:layout="@layout/layout_preference_bottom" />
|
|
|
|
|
</androidx.preference.PreferenceCategory>
|
|
|
|
|
|
2021-02-12 15:00:10 +08:00
|
|
|
<androidx.preference.PreferenceCategory android:title="@string/title_sign_preference">
|
|
|
|
|
<SwitchPreference
|
|
|
|
|
android:defaultValue="true"
|
2021-08-19 17:05:17 +08:00
|
|
|
android:icon="@drawable/ic_round_speed"
|
2021-02-12 15:00:10 +08:00
|
|
|
android:key="oksign_slow_mode"
|
2021-08-19 17:05:17 +08:00
|
|
|
android:summaryOff="@string/summary_oksign_slow_mode"
|
|
|
|
|
android:summaryOn="@string/summary_oksign_slow_mode_on"
|
2021-02-12 15:00:10 +08:00
|
|
|
android:title="@string/title_oksign_slow_mode" />
|
|
|
|
|
|
2020-04-05 13:15:03 +08:00
|
|
|
<SwitchPreference
|
|
|
|
|
android:defaultValue="false"
|
2021-08-19 17:05:17 +08:00
|
|
|
android:icon="@drawable/ic_round_offline_pin_blue"
|
2020-04-05 13:15:03 +08:00
|
|
|
android:key="auto_sign"
|
2021-08-19 17:05:17 +08:00
|
|
|
android:summaryOff="@string/summary_auto_sign"
|
|
|
|
|
android:summaryOn="@string/summary_auto_sign_on"
|
2020-08-11 16:07:45 +08:00
|
|
|
android:title="@string/title_auto_sign" />
|
2020-04-05 13:15:03 +08:00
|
|
|
|
|
|
|
|
<com.huanchengfly.tieba.post.components.prefs.TimePickerPreference
|
2021-08-19 17:05:17 +08:00
|
|
|
android:defaultValue="09:00"
|
2020-04-05 13:15:03 +08:00
|
|
|
android:dependency="auto_sign"
|
|
|
|
|
android:icon="@drawable/ic_round_watch_later_purple"
|
|
|
|
|
android:key="auto_sign_time"
|
2021-08-19 17:05:17 +08:00
|
|
|
android:title="@string/title_auto_sign_time" />
|
2020-04-05 13:15:03 +08:00
|
|
|
|
2022-06-10 10:38:18 +08:00
|
|
|
<Preference
|
|
|
|
|
android:icon="@drawable/ic_round_battery_alert"
|
|
|
|
|
android:key="ignore_battery_optimization"
|
|
|
|
|
android:summary="@string/summary_ignore_battery_optimization"
|
|
|
|
|
android:title="@string/title_ignore_battery_optimization" />
|
|
|
|
|
|
2020-04-05 13:15:03 +08:00
|
|
|
<Preference
|
|
|
|
|
android:layout="@layout/layout_preference_dense"
|
2020-08-11 16:07:45 +08:00
|
|
|
android:summary="@string/tip_auto_sign" />
|
2020-04-05 13:15:03 +08:00
|
|
|
|
|
|
|
|
<Preference
|
|
|
|
|
android:enabled="false"
|
|
|
|
|
android:layout="@layout/layout_preference_bottom" />
|
|
|
|
|
</androidx.preference.PreferenceCategory>
|
|
|
|
|
|
2020-08-11 16:07:45 +08:00
|
|
|
<androidx.preference.PreferenceCategory android:title="@string/title_settings_about">
|
2022-02-05 21:55:24 +08:00
|
|
|
<!--
|
2020-04-05 13:15:03 +08:00
|
|
|
<SwitchPreference
|
|
|
|
|
android:defaultValue="false"
|
2021-08-19 17:05:17 +08:00
|
|
|
android:icon="@drawable/ic_round_bug_report_blue"
|
2020-04-05 13:15:03 +08:00
|
|
|
android:key="check_beta_update"
|
2021-08-19 17:05:17 +08:00
|
|
|
android:summary="@string/tip_check_beta_update"
|
|
|
|
|
android:title="@string/title_check_beta_update" />
|
2022-02-05 21:55:24 +08:00
|
|
|
-->
|
2020-04-05 13:15:03 +08:00
|
|
|
|
|
|
|
|
<SwitchPreference
|
|
|
|
|
android:defaultValue="true"
|
2021-08-19 17:05:17 +08:00
|
|
|
android:icon="@drawable/ic_chrome"
|
2020-04-05 13:15:03 +08:00
|
|
|
android:key="use_webview"
|
2021-08-19 17:05:17 +08:00
|
|
|
android:summaryOff="@string/tip_use_webview"
|
2020-04-05 13:15:03 +08:00
|
|
|
android:summaryOn="@string/tip_use_webview_on"
|
2021-08-19 17:05:17 +08:00
|
|
|
android:title="@string/title_use_webview" />
|
2020-04-05 13:15:03 +08:00
|
|
|
|
|
|
|
|
<SwitchPreference
|
|
|
|
|
android:defaultValue="true"
|
2021-08-19 17:05:17 +08:00
|
|
|
android:icon="@drawable/ic_today"
|
2020-04-05 13:15:03 +08:00
|
|
|
android:key="use_custom_tabs"
|
2021-08-19 17:05:17 +08:00
|
|
|
android:summaryOff="@string/tip_use_custom_tab"
|
2020-04-05 13:15:03 +08:00
|
|
|
android:summaryOn="@string/tip_use_custom_tab_on"
|
2021-08-19 17:05:17 +08:00
|
|
|
android:title="@string/title_use_custom_tabs" />
|
2020-04-05 13:15:03 +08:00
|
|
|
|
|
|
|
|
<Preference
|
|
|
|
|
android:icon="@drawable/ic_round_offline_bolt_green"
|
|
|
|
|
android:key="clear_cache"
|
|
|
|
|
android:title="@string/title_clear_cache" />
|
|
|
|
|
|
|
|
|
|
<Preference
|
|
|
|
|
android:icon="@drawable/ic_round_info"
|
2021-08-19 17:05:17 +08:00
|
|
|
android:key="about"
|
2020-04-05 13:15:03 +08:00
|
|
|
android:title="@string/title_about">
|
2020-08-11 16:07:45 +08:00
|
|
|
<intent
|
2021-08-19 17:05:17 +08:00
|
|
|
android:action="android.intent.action.VIEW"
|
2020-08-11 16:07:45 +08:00
|
|
|
android:targetClass="com.huanchengfly.tieba.post.activities.AboutActivity"
|
2021-08-19 17:05:17 +08:00
|
|
|
android:targetPackage="com.huanchengfly.tieba.post" />
|
2020-04-05 13:15:03 +08:00
|
|
|
</Preference>
|
|
|
|
|
|
|
|
|
|
<Preference
|
|
|
|
|
android:enabled="false"
|
|
|
|
|
android:layout="@layout/layout_preference_bottom" />
|
|
|
|
|
</androidx.preference.PreferenceCategory>
|
|
|
|
|
</androidx.preference.PreferenceScreen>
|