aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res/xml
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2019-08-27 08:46:46 +0000
committerAlex Ning <chineseperson5@gmail.com>2019-08-27 08:46:46 +0000
commit3b0eb15646cc9ac60a7661cf25d5a1a528bae404 (patch)
tree51061820cd68d27e7024061a71aed026d141f3ac /app/src/main/res/xml
parentfe82b5686e271183771bb801e99f24f88c872fbe (diff)
downloadinfinity-for-reddit-3b0eb15646cc9ac60a7661cf25d5a1a528bae404.tar
infinity-for-reddit-3b0eb15646cc9ac60a7661cf25d5a1a528bae404.tar.gz
infinity-for-reddit-3b0eb15646cc9ac60a7661cf25d5a1a528bae404.tar.bz2
infinity-for-reddit-3b0eb15646cc9ac60a7661cf25d5a1a528bae404.tar.lz
infinity-for-reddit-3b0eb15646cc9ac60a7661cf25d5a1a528bae404.tar.xz
infinity-for-reddit-3b0eb15646cc9ac60a7661cf25d5a1a528bae404.tar.zst
infinity-for-reddit-3b0eb15646cc9ac60a7661cf25d5a1a528bae404.zip
This app now has an icon (finally)git statusgit statusgit status Add a credits page in settings. Use another error view and no comment placeholder.
Diffstat (limited to 'app/src/main/res/xml')
-rw-r--r--app/src/main/res/xml/about_preferences.xml13
-rw-r--r--app/src/main/res/xml/credits_preferences.xml44
-rw-r--r--app/src/main/res/xml/main_preferences.xml6
3 files changed, 59 insertions, 4 deletions
diff --git a/app/src/main/res/xml/about_preferences.xml b/app/src/main/res/xml/about_preferences.xml
new file mode 100644
index 00000000..a16237e4
--- /dev/null
+++ b/app/src/main/res/xml/about_preferences.xml
@@ -0,0 +1,13 @@
+<?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
+ app:title="@string/settings_acknowledgement_master_title"
+ app:fragment="Settings.AcknowledgementFragment" />
+
+ <Preference
+ app:title="@string/settings_credits_master_title"
+ app:fragment="Settings.CreditsPreferenceFragment" />
+
+</PreferenceScreen> \ No newline at end of file
diff --git a/app/src/main/res/xml/credits_preferences.xml b/app/src/main/res/xml/credits_preferences.xml
new file mode 100644
index 00000000..d5a5f580
--- /dev/null
+++ b/app/src/main/res/xml/credits_preferences.xml
@@ -0,0 +1,44 @@
+<?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:key="icon_foreground"
+ app:title="@string/settings_credits_icon_foreground_title"
+ android:summary="@string/settings_credits_icon_foreground_summary" />
+
+ <Preference
+ android:key="icon_background"
+ app:title="@string/settings_credits_icon_background_title"
+ android:summary="@string/settings_credits_icon_background_summary" />
+
+ <Preference
+ android:key="error_image"
+ app:title="@string/settings_credits_error_image_title"
+ android:summary="@string/settings_credits_error_image_summary" />
+
+ <Preference
+ android:key="subreddit_and_user_placeholder"
+ app:title="@string/settings_credits_subreddit_and_user_placeholder_title"
+ android:summary="@string/settings_credits_subreddit_and_user_placeholder_summary" />
+
+ <Preference
+ android:key="gilded_icon"
+ app:title="@string/settings_credits_gilded_icon_title"
+ android:summary="@string/settings_credits_gilded_icon_summary" />
+
+ <Preference
+ android:key="crosspost_icon"
+ app:title="@string/settings_credits_crosspost_icon_title"
+ android:summary="@string/settings_credits_crosspost_icon_summary" />
+
+ <Preference
+ android:key="thumbtack_icon"
+ app:title="@string/settings_credits_thumbtack_icon_title"
+ android:summary="@string/settings_credits_thumbtack_icon_summary" />
+
+ <Preference
+ android:key="material_icons"
+ app:title="@string/settings_credits_material_icons_title"/>
+
+</PreferenceScreen> \ No newline at end of file
diff --git a/app/src/main/res/xml/main_preferences.xml b/app/src/main/res/xml/main_preferences.xml
index 7d482fae..bdf0f2a6 100644
--- a/app/src/main/res/xml/main_preferences.xml
+++ b/app/src/main/res/xml/main_preferences.xml
@@ -3,7 +3,6 @@
xmlns:app="http://schemas.android.com/apk/res-auto">
<Preference
- app:key="notification_master"
app:icon="@drawable/ic_outline_notifications_24px"
app:title="@string/settings_notification_master_title"
app:fragment="Settings.NotificationPreferenceFragment" />
@@ -31,8 +30,7 @@
app:title="@string/settings_enable_nsfw_title"/>
<Preference
- app:key="acknowledgement_master"
- app:title="@string/settings_acknowledgement_master_title"
- app:fragment="Settings.AcknowledgementFragment" />
+ app:title="@string/settings_about_master_title"
+ app:fragment="Settings.AboutPreferenceFragment" />
</androidx.preference.PreferenceScreen> \ No newline at end of file