LibreTube/app/src/main/res/xml/general_settings.xml

57 lines
2.0 KiB
XML

<?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">
<PreferenceCategory app:title="@string/location">
<ListPreference
android:icon="@drawable/ic_region"
app:defaultValue="sys"
app:key="region"
app:title="@string/region" />
<ListPreference
android:icon="@drawable/ic_translate"
app:defaultValue="sys"
app:entries="@array/languages"
app:entryValues="@array/languagesValue"
app:key="language"
app:title="@string/changeLanguage"
app:useSimpleSummaryProvider="true" />
</PreferenceCategory>
<PreferenceCategory app:title="@string/customization">
<SwitchPreferenceCompat
android:defaultValue="false"
android:icon="@drawable/ic_headphones"
android:summary="@string/audio_only_mode_summary"
android:title="@string/audio_only_mode"
app:key="audio_only_mode" />
<ListPreference
android:defaultValue="@string/config_default_orientation_pref"
android:entries="@array/orientation"
android:entryValues="@array/orientation_values"
android:icon="@drawable/ic_screen_rotation"
app:key="orientation"
app:title="@string/screen_orientation"
app:useSimpleSummaryProvider="true" />
<SwitchPreferenceCompat
android:defaultValue="true"
android:icon="@drawable/ic_suggestions"
app:key="search_suggestions"
app:title="@string/show_search_suggestions" />
<SwitchPreferenceCompat
android:defaultValue="true"
android:icon="@drawable/ic_list"
app:key="related_streams_toggle"
app:summary="@string/related_streams_summary"
app:title="@string/related_streams" />
</PreferenceCategory>
</PreferenceScreen>