diff options
author | Alex Ning <chineseperson5@gmail.com> | 2021-02-23 16:15:37 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2021-02-23 16:15:37 +0000 |
commit | 07e2e1e746164eb39c20a1bacbb53bdfc3f8d2c8 (patch) | |
tree | b10b88fb362bfcad2f235cab77c201b32b265a3c /app/src/main/res | |
parent | 73ddafdfccc3f6bb69df13b06a2b7b68e9f6dce8 (diff) | |
download | infinity-for-reddit-07e2e1e746164eb39c20a1bacbb53bdfc3f8d2c8.tar infinity-for-reddit-07e2e1e746164eb39c20a1bacbb53bdfc3f8d2c8.tar.gz infinity-for-reddit-07e2e1e746164eb39c20a1bacbb53bdfc3f8d2c8.tar.bz2 infinity-for-reddit-07e2e1e746164eb39c20a1bacbb53bdfc3f8d2c8.tar.lz infinity-for-reddit-07e2e1e746164eb39c20a1bacbb53bdfc3f8d2c8.tar.xz infinity-for-reddit-07e2e1e746164eb39c20a1bacbb53bdfc3f8d2c8.tar.zst infinity-for-reddit-07e2e1e746164eb39c20a1bacbb53bdfc3f8d2c8.zip |
New options: hide post type and hide the number of awards. Tweak settings.
Diffstat (limited to '')
-rw-r--r-- | app/src/main/res/layout/item_post_card_2_text.xml | 2 | ||||
-rw-r--r-- | app/src/main/res/layout/item_post_card_2_video_autoplay.xml | 2 | ||||
-rw-r--r-- | app/src/main/res/layout/item_post_card_2_with_preview.xml | 2 | ||||
-rw-r--r-- | app/src/main/res/values/arrays.xml | 2 | ||||
-rw-r--r-- | app/src/main/res/values/strings.xml | 10 | ||||
-rw-r--r-- | app/src/main/res/xml/post_preferences.xml | 21 |
6 files changed, 28 insertions, 11 deletions
diff --git a/app/src/main/res/layout/item_post_card_2_text.xml b/app/src/main/res/layout/item_post_card_2_text.xml index af8fe398..a133cd52 100644 --- a/app/src/main/res/layout/item_post_card_2_text.xml +++ b/app/src/main/res/layout/item_post_card_2_text.xml @@ -4,7 +4,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" xmlns:tools="http://schemas.android.com/tools" - android:paddingTop="8dp" + android:paddingTop="12dp" android:clickable="true" android:focusable="true" android:background="?attr/selectableItemBackground" diff --git a/app/src/main/res/layout/item_post_card_2_video_autoplay.xml b/app/src/main/res/layout/item_post_card_2_video_autoplay.xml index 9047c717..da85dcea 100644 --- a/app/src/main/res/layout/item_post_card_2_video_autoplay.xml +++ b/app/src/main/res/layout/item_post_card_2_video_autoplay.xml @@ -4,7 +4,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" xmlns:tools="http://schemas.android.com/tools" - android:paddingTop="8dp" + android:paddingTop="16dp" android:clickable="true" android:focusable="true" android:background="?attr/selectableItemBackground" diff --git a/app/src/main/res/layout/item_post_card_2_with_preview.xml b/app/src/main/res/layout/item_post_card_2_with_preview.xml index 4007aae2..07e17a71 100644 --- a/app/src/main/res/layout/item_post_card_2_with_preview.xml +++ b/app/src/main/res/layout/item_post_card_2_with_preview.xml @@ -4,7 +4,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" xmlns:tools="http://schemas.android.com/tools" - android:paddingTop="8dp" + android:paddingTop="16dp" android:clickable="true" android:focusable="true" android:background="?attr/selectableItemBackground" diff --git a/app/src/main/res/values/arrays.xml b/app/src/main/res/values/arrays.xml index 4686b42d..132c8cbc 100644 --- a/app/src/main/res/values/arrays.xml +++ b/app/src/main/res/values/arrays.xml @@ -43,12 +43,14 @@ <string-array name="settings_default_post_layout"> <item>Card Layout</item> + <item>Card Layout 2</item> <item>Compact Layout</item> <item>Gallery Layout</item> </string-array> <string-array name="settings_default_post_layout_values"> <item>0</item> + <item>3</item> <item>1</item> <item>2</item> </string-array> diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index e47b5201..97c0a842 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -385,8 +385,8 @@ <string name="settings_time_format_title">Time Format</string> <string name="settings_category_post_title">Post</string> <string name="settings_default_post_layout">Default Post Layout</string> - <string name="settings_show_divider_in_compact_layout">Show Divider in Compact Layout</string> - <string name="settings_show_thumbnail_on_the_left_in_compact_layout">Show Thumbnail on the Left in Compact Layout</string> + <string name="settings_show_divider_in_compact_layout">Show Divider</string> + <string name="settings_show_thumbnail_on_the_left_in_compact_layout">Show Thumbnail on the Left</string> <string name="settings_number_of_columns_in_post_feed_title">The Number of Columns in Post Feed</string> <string name="settings_number_of_columns_in_post_feed_portrait_title">Portrait</string> <string name="settings_number_of_columns_in_post_feed_landscape_title">Landscape</string> @@ -491,8 +491,8 @@ <string name="settings_pull_to_refresh_title">Pull to Refresh</string> <string name="settings_security_title">Security</string> <string name="settings_require_authentication_to_go_to_account_section_in_navigation_drawer_title">Require Authentication to Go to Account Section in Navigation Drawer</string> - <string name="settings_long_press_to_hide_toolbar_in_compact_layout_title">Long Press to Hide Toolbar in Compact Layout</string> - <string name="settings_post_compact_layout_toolbar_hidden_by_default_title">Toolbar in Compact Layout Hidden by Default</string> + <string name="settings_long_press_to_hide_toolbar_in_compact_layout_title">Long Press to Hide Toolbar</string> + <string name="settings_post_compact_layout_toolbar_hidden_by_default_title">Hide Toolbar by Default</string> <string name="settings_customize_bottom_app_bar_title">Customize Bottom Navigation Bar</string> <string name="settings_main_activity_bottom_app_bar_group_summary">Main Page</string> <string name="settings_other_activities_bottom_app_bar_group_summary">Other Pages</string> @@ -535,6 +535,8 @@ <string name="settings_user_default_sort_type_title">User Default Sort Type</string> <string name="settings_user_default_sort_time_title">User Default Sort Time</string> <string name="settings_click_to_show_media_in_gallery_layout">Click to Show Media in Gallery Layout</string> + <string name="settings_hide_post_type">Hide Post Type</string> + <string name="settings_hide_the_number_of_awards">Hide the Number of Awards</string> <string name="no_link_available">Cannot get the link</string> diff --git a/app/src/main/res/xml/post_preferences.xml b/app/src/main/res/xml/post_preferences.xml index 6dfbff12..bafe60fd 100644 --- a/app/src/main/res/xml/post_preferences.xml +++ b/app/src/main/res/xml/post_preferences.xml @@ -10,6 +10,23 @@ app:title="@string/settings_default_post_layout" app:useSimpleSummaryProvider="true" /> + <Preference + app:title="@string/settings_number_of_columns_in_post_feed_title" + app:fragment="ml.docilealligator.infinityforreddit.settings.NumberOfColumnsInPostFeedPreferenceFragment" /> + + <SwitchPreference + app:defaultValue="false" + app:key="hide_post_type" + app:title="@string/settings_hide_post_type" /> + + <SwitchPreference + app:defaultValue="false" + app:key="hide_the_number_of_awards" + app:title="@string/settings_hide_the_number_of_awards" /> + + <PreferenceCategory + app:title="@string/post_layout_compact" /> + <SwitchPreference app:defaultValue="true" app:key="show_divider_in_compact_layout" @@ -30,10 +47,6 @@ app:key="post_compact_layout_toolbar_hidden_by_default" app:title="@string/settings_post_compact_layout_toolbar_hidden_by_default_title" /> - <Preference - app:title="@string/settings_number_of_columns_in_post_feed_title" - app:fragment="ml.docilealligator.infinityforreddit.settings.NumberOfColumnsInPostFeedPreferenceFragment" /> - <PreferenceCategory app:title="@string/post_layout_gallery" /> |