diff options
Diffstat (limited to 'app/src/main/res/xml')
-rw-r--r-- | app/src/main/res/xml/pref_categories.xml | 7 | ||||
-rw-r--r-- | app/src/main/res/xml/pref_extra_features.xml | 64 | ||||
-rw-r--r-- | app/src/main/res/xml/pref_interface.xml | 1 |
3 files changed, 72 insertions, 0 deletions
diff --git a/app/src/main/res/xml/pref_categories.xml b/app/src/main/res/xml/pref_categories.xml index 3d2669c56..826f560c5 100644 --- a/app/src/main/res/xml/pref_categories.xml +++ b/app/src/main/res/xml/pref_categories.xml @@ -73,6 +73,13 @@ <Preference android:layout_width="match_parent" android:layout_height="wrap_content" + android:title="@string/set_extand_extra_features_title" + app:icon="@drawable/ic_baseline_extension_24" + app:key="@string/pref_category_key_extra_features" /> + + <Preference + android:layout_width="match_parent" + android:layout_height="wrap_content" android:title="@string/export_settings" app:icon="@drawable/ic_baseline_keyboard_arrow_down_24" app:key="@string/pref_export_settings" /> diff --git a/app/src/main/res/xml/pref_extra_features.xml b/app/src/main/res/xml/pref_extra_features.xml new file mode 100644 index 000000000..91d0a2637 --- /dev/null +++ b/app/src/main/res/xml/pref_extra_features.xml @@ -0,0 +1,64 @@ +<?xml version="1.0" encoding="utf-8"?> +<androidx.preference.PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto"> + <SwitchPreferenceCompat + app:defaultValue="false" + app:iconSpaceReserved="false" + app:key="@string/SET_EXTAND_EXTRA_FEATURES" + app:singleLineTitle="false" + app:summary="@string/set_extand_extra_features" + app:title="@string/set_extand_extra_features_title" /> + <app.fedilab.android.helper.settings.LongSummaryPreferenceCategory + app:dependency="@string/SET_EXTAND_EXTRA_FEATURES" + app:iconSpaceReserved="false" + app:key="bottom_icon" + app:summary="@string/icons_visibility_summary" + app:title="@string/icons_visibility"> + <SwitchPreferenceCompat + android:defaultValue="true" + app:iconSpaceReserved="false" + app:key="@string/SET_DISPLAY_BOOKMARK" + app:singleLineTitle="false" + app:title="@string/set_display_bookmark_indication" /> + <SwitchPreferenceCompat + android:defaultValue="false" + app:iconSpaceReserved="false" + app:key="@string/SET_DISPLAY_TRANSLATE" + app:singleLineTitle="false" + app:title="@string/set_display_translate_indication" /> + </app.fedilab.android.helper.settings.LongSummaryPreferenceCategory> + + + <app.fedilab.android.helper.settings.LongSummaryPreferenceCategory + app:dependency="@string/SET_EXTAND_EXTRA_FEATURES" + app:iconSpaceReserved="false" + app:key="bottom_icon" + app:summary="@string/icons_extra_features_visibility_summary" + app:title="@string/icons_extra_features"> + <SwitchPreferenceCompat + android:defaultValue="true" + app:iconSpaceReserved="false" + app:key="@string/SET_DISPLAY_QUOTES" + app:singleLineTitle="false" + app:title="@string/set_display_quote_indication" /> + <SwitchPreferenceCompat + android:defaultValue="true" + app:iconSpaceReserved="false" + app:key="@string/SET_DISPLAY_REACTIONS" + app:singleLineTitle="false" + app:title="@string/set_display_reaction_indication" /> + </app.fedilab.android.helper.settings.LongSummaryPreferenceCategory> + + <ListPreference + app:defaultValue="text/plain" + app:dependency="@string/SET_EXTAND_EXTRA_FEATURES" + app:dialogTitle="@string/post_format" + app:entries="@array/SET_POST_FORMAT" + app:entryValues="@array/SET_POST_FORMAT" + app:iconSpaceReserved="false" + app:key="@string/SET_POST_FORMAT" + app:summary="@string/change_logo_description" + app:title="@string/set_post_format" + app:useSimpleSummaryProvider="true" /> + +</androidx.preference.PreferenceScreen>
\ No newline at end of file diff --git a/app/src/main/res/xml/pref_interface.xml b/app/src/main/res/xml/pref_interface.xml index f00bf82e5..55b5f58ec 100644 --- a/app/src/main/res/xml/pref_interface.xml +++ b/app/src/main/res/xml/pref_interface.xml @@ -28,6 +28,7 @@ app:summary="@string/set_remove_left_margin" app:title="@string/set_remove_left_margin_title" /> + <SwitchPreferenceCompat app:defaultValue="true" app:iconSpaceReserved="false" |