aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res/xml-sw600dp
diff options
context:
space:
mode:
authorAndrew Rasch <raschykid@gmail.com>2021-09-27 00:10:12 +0000
committerAndrew Rasch <raschykid@gmail.com>2021-09-27 00:10:12 +0000
commit0d93d7c9961aa36fc2d86857a4b345d36351cbe6 (patch)
treed9f0ae99b17a4907d0f8a8862aa0b6942b6947d9 /app/src/main/res/xml-sw600dp
parent50de5bb44a9ad36a15477ffbc3a7f7eb1c9e9e77 (diff)
downloadinfinity-for-reddit-0d93d7c9961aa36fc2d86857a4b345d36351cbe6.tar
infinity-for-reddit-0d93d7c9961aa36fc2d86857a4b345d36351cbe6.tar.gz
infinity-for-reddit-0d93d7c9961aa36fc2d86857a4b345d36351cbe6.tar.bz2
infinity-for-reddit-0d93d7c9961aa36fc2d86857a4b345d36351cbe6.tar.lz
infinity-for-reddit-0d93d7c9961aa36fc2d86857a4b345d36351cbe6.tar.xz
infinity-for-reddit-0d93d7c9961aa36fc2d86857a4b345d36351cbe6.tar.zst
infinity-for-reddit-0d93d7c9961aa36fc2d86857a4b345d36351cbe6.zip
Enable folding phone support for card view
Updated card view to allow for separate column numbers for folded vs unfolded state. Organized strings.xml.
Diffstat (limited to 'app/src/main/res/xml-sw600dp')
-rw-r--r--app/src/main/res/xml-sw600dp/number_of_columns_in_post_feed_preferences.xml23
1 files changed, 23 insertions, 0 deletions
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
index 3114805a..b4a6b1fa 100644
--- 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
@@ -5,6 +5,11 @@
app:summary="@string/restart_app_see_changes"
app:enabled="false" />
+ <SwitchPreference
+ app:defaultValue="false"
+ app:key="enable_fold_support"
+ app:title="Enable folding phone support" />
+
<PreferenceCategory
app:title="@string/post_layout_card" />
@@ -24,6 +29,24 @@
app:title="@string/settings_number_of_columns_in_post_feed_landscape_title"
app:useSimpleSummaryProvider="true" />
+ <ListPreference
+ app:defaultValue="2"
+ app:entries="@array/settings_number_of_columns_in_post_feed"
+ app:entryValues="@array/settings_number_of_columns_in_post_feed"
+ app:key="number_of_columns_in_post_feed_portrait_unfolded"
+ app:title="@string/settings_number_of_columns_in_post_feed_unfolded_portrait_title"
+ app:useSimpleSummaryProvider="true"
+ app:dependency="enable_fold_support" />
+
+ <ListPreference
+ app:defaultValue="2"
+ app:entries="@array/settings_number_of_columns_in_post_feed"
+ app:entryValues="@array/settings_number_of_columns_in_post_feed"
+ app:key="number_of_columns_in_post_feed_landscape_unfolded"
+ app:title="@string/settings_number_of_columns_in_post_feed_unfolded_landscape_title"
+ app:useSimpleSummaryProvider="true"
+ app:dependency="enable_fold_support"/>
+
<PreferenceCategory
app:title="@string/post_layout_card_2" />