diff options
author | Alex Ning <chineseperson5@gmail.com> | 2021-02-17 13:44:59 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2021-02-17 13:44:59 +0000 |
commit | 52d6691ae7ea7d9d5a19bede87b913f33e0645a3 (patch) | |
tree | da85b2f9454e28a8629cafa9552cd6cb9f4334ee /app/src/main/res/xml/post_preferences.xml | |
parent | 9b9a1aa308659fc2f031f468002eeff15323b9d6 (diff) | |
download | infinity-for-reddit-52d6691ae7ea7d9d5a19bede87b913f33e0645a3.tar infinity-for-reddit-52d6691ae7ea7d9d5a19bede87b913f33e0645a3.tar.gz infinity-for-reddit-52d6691ae7ea7d9d5a19bede87b913f33e0645a3.tar.bz2 infinity-for-reddit-52d6691ae7ea7d9d5a19bede87b913f33e0645a3.tar.lz infinity-for-reddit-52d6691ae7ea7d9d5a19bede87b913f33e0645a3.tar.xz infinity-for-reddit-52d6691ae7ea7d9d5a19bede87b913f33e0645a3.tar.zst infinity-for-reddit-52d6691ae7ea7d9d5a19bede87b913f33e0645a3.zip |
Customize the number of columns in Post Feed for every post layout.
Diffstat (limited to '')
-rw-r--r-- | app/src/main/res/xml/post_preferences.xml | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/app/src/main/res/xml/post_preferences.xml b/app/src/main/res/xml/post_preferences.xml new file mode 100644 index 00000000..4c4b50aa --- /dev/null +++ b/app/src/main/res/xml/post_preferences.xml @@ -0,0 +1,37 @@ +<?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"> + + <ListPreference + app:defaultValue="0" + android:entries="@array/settings_default_post_layout" + app:entryValues="@array/settings_default_post_layout_values" + app:key="default_post_layout" + app:title="@string/settings_default_post_layout" + app:useSimpleSummaryProvider="true" /> + + <SwitchPreference + app:defaultValue="true" + app:key="show_divider_in_compact_layout" + app:title="@string/settings_show_divider_in_compact_layout" /> + + <SwitchPreference + app:defaultValue="false" + app:key="show_thumbnail_on_the_left_in_compact_layout" + app:title="@string/settings_show_thumbnail_on_the_left_in_compact_layout" /> + + <SwitchPreference + app:defaultValue="false" + app:key="long_press_to_hide_toolbar_in_compact_layout" + app:title="@string/settings_long_press_to_hide_toolbar_in_compact_layout_title" /> + + <SwitchPreference + app:defaultValue="false" + 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" /> + +</PreferenceScreen>
\ No newline at end of file |