aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res/xml
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/res/xml')
-rw-r--r--app/src/main/res/xml/customize_main_page_tabs_preferences.xml76
-rw-r--r--app/src/main/res/xml/interface_preference.xml5
2 files changed, 81 insertions, 0 deletions
diff --git a/app/src/main/res/xml/customize_main_page_tabs_preferences.xml b/app/src/main/res/xml/customize_main_page_tabs_preferences.xml
new file mode 100644
index 00000000..37e17d0c
--- /dev/null
+++ b/app/src/main/res/xml/customize_main_page_tabs_preferences.xml
@@ -0,0 +1,76 @@
+<?xml version="1.0" encoding="utf-8"?>
+<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto">
+
+ <Preference
+ android:icon="@drawable/ic_info_preference_24dp"
+ app:summary="@string/settings_tab_info"
+ app:enabled="false" />
+
+ <PreferenceCategory
+ app:title="@string/settings_tab_1_summary" />
+
+ <EditTextPreference
+ app:defaultValue="@string/home"
+ app:key="main_page_tab_1_title"
+ app:title="@string/settings_tab_title"
+ app:useSimpleSummaryProvider="true" />
+
+ <ListPreference
+ app:defaultValue="0"
+ android:entries="@array/settings_tab_post_type"
+ app:entryValues="@array/settings_tab_post_type_values"
+ app:key="main_page_tab_1_post_type"
+ app:title="@string/settings_tab_post_type"
+ app:useSimpleSummaryProvider="true" />
+
+ <EditTextPreference
+ app:key="main_page_tab_1_name"
+ app:isPreferenceVisible="false"
+ app:useSimpleSummaryProvider="true" />
+
+ <PreferenceCategory
+ app:title="@string/settings_tab_2_summary" />
+
+ <EditTextPreference
+ app:defaultValue="@string/popular"
+ app:key="main_page_tab_2_title"
+ app:title="@string/settings_tab_title"
+ app:useSimpleSummaryProvider="true" />
+
+ <ListPreference
+ app:defaultValue="1"
+ android:entries="@array/settings_tab_post_type"
+ app:entryValues="@array/settings_tab_post_type_values"
+ app:key="main_page_tab_2_post_type"
+ app:title="@string/settings_tab_post_type"
+ app:useSimpleSummaryProvider="true" />
+
+ <EditTextPreference
+ app:key="main_page_tab_2_name"
+ app:isPreferenceVisible="false"
+ app:useSimpleSummaryProvider="true" />
+
+ <PreferenceCategory
+ app:title="@string/settings_tab_3_summary" />
+
+ <EditTextPreference
+ app:defaultValue="@string/all"
+ app:key="main_page_tab_3_title"
+ app:title="@string/settings_tab_title"
+ app:useSimpleSummaryProvider="true" />
+
+ <ListPreference
+ app:defaultValue="2"
+ android:entries="@array/settings_tab_post_type"
+ app:entryValues="@array/settings_tab_post_type_values"
+ app:key="main_page_tab_3_post_type"
+ app:title="@string/settings_tab_post_type"
+ app:useSimpleSummaryProvider="true" />
+
+ <EditTextPreference
+ app:key="main_page_tab_3_name"
+ app:isPreferenceVisible="false"
+ app:useSimpleSummaryProvider="true" />
+
+</PreferenceScreen> \ No newline at end of file
diff --git a/app/src/main/res/xml/interface_preference.xml b/app/src/main/res/xml/interface_preference.xml
index 8b67a3bc..58de9ef4 100644
--- a/app/src/main/res/xml/interface_preference.xml
+++ b/app/src/main/res/xml/interface_preference.xml
@@ -20,6 +20,11 @@
app:summary="@string/settings_immersive_interface_ignore_nav_bar_summary"
app:isPreferenceVisible="false" />
+ <Preference
+ app:title="@string/settings_customize_tabs_in_main_page_title"
+ app:summary="@string/settings_customize_tabs_in_main_page_summary"
+ app:fragment="ml.docilealligator.infinityforreddit.Settings.CustomizeMainPageTabsFragment" />
+
<SwitchPreference
app:defaultValue="false"
app:key="bottom_app_bar"