aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2020-03-24 06:14:47 +0000
committerAlex Ning <chineseperson5@gmail.com>2020-03-24 06:14:47 +0000
commitf5fc3850392601797a44c6dc07128155a420faa7 (patch)
tree3f63906f1f1f60debf55b833542fa723fe1cae97 /app/src/main/res
parent9c4889b1b02a6bfa6486ce1c3bfc0c6b590f1f4e (diff)
downloadinfinity-for-reddit-f5fc3850392601797a44c6dc07128155a420faa7.tar
infinity-for-reddit-f5fc3850392601797a44c6dc07128155a420faa7.tar.gz
infinity-for-reddit-f5fc3850392601797a44c6dc07128155a420faa7.tar.bz2
infinity-for-reddit-f5fc3850392601797a44c6dc07128155a420faa7.tar.lz
infinity-for-reddit-f5fc3850392601797a44c6dc07128155a420faa7.tar.xz
infinity-for-reddit-f5fc3850392601797a44c6dc07128155a420faa7.tar.zst
infinity-for-reddit-f5fc3850392601797a44c6dc07128155a420faa7.zip
Add CustomThemeListingActivity.
Diffstat (limited to '')
-rw-r--r--app/src/main/res/layout/item_theme_type_divider.xml5
-rw-r--r--app/src/main/res/values/strings.xml5
-rw-r--r--app/src/main/res/xml/theme_preferences.xml9
3 files changed, 19 insertions, 0 deletions
diff --git a/app/src/main/res/layout/item_theme_type_divider.xml b/app/src/main/res/layout/item_theme_type_divider.xml
new file mode 100644
index 00000000..0933ae9c
--- /dev/null
+++ b/app/src/main/res/layout/item_theme_type_divider.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="utf-8"?>
+<TextView xmlns:android="http://schemas.android.com/apk/res/android"
+ android:orientation="vertical" android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:padding="16dp" /> \ No newline at end of file
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index fc88749c..b8d4e657 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -19,6 +19,7 @@
<string name="multi_reddit_listing_activity_label">Multireddit</string>
<string name="create_multi_reddit_activity_label">Create Multireddit</string>
<string name="subreddit_multiselection_activity_label">Select Subreddits</string>
+ <string name="custom_theme_listing_activity_label">Custom Themes</string>
<string name="navigation_drawer_open">Open navigation drawer</string>
<string name="navigation_drawer_close">Close navigation drawer</string>
@@ -361,6 +362,8 @@
<string name="settings_customize_light_theme_title">Light Theme</string>
<string name="settings_customize_dark_theme_title">Dark Theme</string>
<string name="settings_customize_amoled_theme_title">Amoled Theme</string>
+ <string name="settings_select_and_customize_theme_title">Select and Customize Themes</string>
+ <string name="settings_custom_theme_cannot_apply_to_settings_page_title">Custom themes cannot be applied to settings page.</string>
<string name="no_link_available">Cannot get the link</string>
@@ -598,6 +601,8 @@
<string name="theme_item_available_on_android_8">Only available for Android 8.0 or above.</string>
<string name="theme_item_available_on_android_6">Only available for Android 6.0 or above.</string>
+ <string name="predefined_themes">Predefined Themes</string>
+ <string name="user_themes">Your Themes</string>
<string name="theme_name_indigo">Indigo</string>
<string name="theme_name_indigo_dark">Indigo Dark</string>
<string name="theme_name_indigo_amoled">Indigo Amoled</string>
diff --git a/app/src/main/res/xml/theme_preferences.xml b/app/src/main/res/xml/theme_preferences.xml
index e7d9c13f..5bcc5ef3 100644
--- a/app/src/main/res/xml/theme_preferences.xml
+++ b/app/src/main/res/xml/theme_preferences.xml
@@ -33,4 +33,13 @@
app:icon="@drawable/ic_dark_theme_preference_24dp"
app:title="@string/settings_customize_amoled_theme_title" />
+ <Preference
+ app:key="select_and_customize_theme"
+ app:icon="@drawable/ic_edit_24dp"
+ app:title="@string/settings_select_and_customize_theme_title" />
+
+ <Preference
+ app:summary="@string/settings_custom_theme_cannot_apply_to_settings_page_title"
+ app:enabled="false" />
+
</PreferenceScreen> \ No newline at end of file