From 087ca72fc75708184fa7154afb69e2907538c66e Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Tue, 25 Aug 2020 09:34:50 +0800 Subject: Add options to change the number of columns in PostFragment portrait and landscape modes. Upgrade compileSdkVersion and targetSdkVersion to 30. --- app/src/main/res/values/arrays.xml | 5 +++++ app/src/main/res/values/strings.xml | 3 +++ .../number_of_columns_in_post_feed_preferences.xml | 18 ++++++++++++++++ app/src/main/res/xml/interface_preference.xml | 4 ++++ .../number_of_columns_in_post_feed_preferences.xml | 24 ++++++++++++++++++++++ 5 files changed, 54 insertions(+) create mode 100644 app/src/main/res/xml-sw600dp/number_of_columns_in_post_feed_preferences.xml create mode 100644 app/src/main/res/xml/number_of_columns_in_post_feed_preferences.xml (limited to 'app/src/main/res') diff --git a/app/src/main/res/values/arrays.xml b/app/src/main/res/values/arrays.xml index e3ad548e..38edbb2a 100644 --- a/app/src/main/res/values/arrays.xml +++ b/app/src/main/res/values/arrays.xml @@ -228,4 +228,9 @@ yyyy.M.d HH:mm yyyy.M.d hh:mm a + + + 1 + 2 + \ 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 b909ab32..8105a92f 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -387,6 +387,9 @@ Default Post Layout Show Divider in Compact Layout Show Thumbnail on the Left in Compact Layout + The Number of Columns in Post Feed + Portrait + Landscape Swap Tap and Long Press in Comments Swipe Right to Go Back Does Not Apply to All Pages diff --git a/app/src/main/res/xml-sw600dp/number_of_columns_in_post_feed_preferences.xml b/app/src/main/res/xml-sw600dp/number_of_columns_in_post_feed_preferences.xml new file mode 100644 index 00000000..4a61e4fc --- /dev/null +++ b/app/src/main/res/xml-sw600dp/number_of_columns_in_post_feed_preferences.xml @@ -0,0 +1,18 @@ + + + + + + \ 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 2e5c71e3..0fcd1977 100644 --- a/app/src/main/res/xml/interface_preference.xml +++ b/app/src/main/res/xml/interface_preference.xml @@ -62,6 +62,10 @@ app:key="show_thumbnail_on_the_left_in_compact_layout" app:title="@string/settings_show_thumbnail_on_the_left_in_compact_layout" /> + + diff --git a/app/src/main/res/xml/number_of_columns_in_post_feed_preferences.xml b/app/src/main/res/xml/number_of_columns_in_post_feed_preferences.xml new file mode 100644 index 00000000..cbaea03e --- /dev/null +++ b/app/src/main/res/xml/number_of_columns_in_post_feed_preferences.xml @@ -0,0 +1,24 @@ + + + + + + + + \ No newline at end of file -- cgit v1.2.3