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

238 lines
8.5 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/gestures">
<SwitchPreferenceCompat
android:defaultValue="true"
android:icon="@drawable/ic_swipe_gesture"
android:summary="@string/swipe_controls_summary"
app:key="player_swipe_controls"
app:title="@string/swipe_controls" />
<SwitchPreferenceCompat
android:defaultValue="false"
android:icon="@drawable/ic_fullscreen"
app:key="fullscreen_gestures"
app:title="@string/fullscreen_gestures" />
<SwitchPreferenceCompat
android:defaultValue="true"
android:icon="@drawable/ic_pinch_gesture"
android:summary="@string/pinch_control_summary"
app:key="player_pinch_control"
app:title="@string/pinch_control" />
<SwitchPreferenceCompat
android:defaultValue="true"
android:icon="@drawable/ic_skip"
android:summary="@string/double_tap_seek_summary"
app:key="double_tap_seek"
app:title="@string/double_tap_seek" />
</PreferenceCategory>
<PreferenceCategory app:title="@string/behavior">
<com.github.libretube.ui.views.SliderPreference
android:icon="@drawable/ic_skip"
app:defValue="10.0"
app:key="seek_increment"
app:stepSize="5.0"
app:title="@string/seek_increment"
app:valueFrom="5.0"
app:valueTo="60.0" />
<SwitchPreferenceCompat
android:defaultValue="false"
android:icon="@drawable/ic_next"
android:summary="@string/skip_buttons_summary"
app:key="skip_buttons"
app:title="@string/skip_buttons" />
<ListPreference
android:defaultValue="true"
android:icon="@drawable/ic_window"
app:key="behavior_when_minimized"
app:title="@string/behavior_when_minimized"
app:entries="@array/onMinimize"
app:entryValues="@array/onMinimizeValues"
app:useSimpleSummaryProvider="true" />
<SwitchPreferenceCompat
android:disableDependentsState="true"
android:icon="@drawable/ic_rotating_circle"
android:summary="@string/autoRotatePlayer_summary"
app:defaultValue="false"
app:key="auto_fullscreen"
app:title="@string/autoRotatePlayer" />
<ListPreference
android:dependency="auto_fullscreen"
android:icon="@drawable/ic_flip"
app:defaultValue="ratio"
app:entries="@array/fullscreenOrientation"
app:entryValues="@array/fullscreenOrientationValues"
app:key="fullscreen_orientation"
app:title="@string/fullscreen_orientation"
app:useSimpleSummaryProvider="true" />
</PreferenceCategory>
<PreferenceCategory app:title="@string/captions">
<SwitchPreferenceCompat
android:icon="@drawable/ic_caption"
app:defaultValue="true"
app:key="system_caption_style"
app:title="@string/system_caption_style" />
<Preference
android:dependency="system_caption_style"
android:icon="@drawable/ic_settings"
app:key="caption_settings"
app:title="@string/caption_settings" />
<SwitchPreferenceCompat
android:icon="@drawable/ic_caption"
app:defaultValue="false"
app:key="rich_caption_rendering"
app:title="@string/rich_caption_rendering"
android:summary="@string/rich_caption_rendering_summary"/>
<com.github.libretube.ui.views.SliderPreference
android:icon="@drawable/ic_text"
android:key="captions_size"
android:title="@string/captions_size"
app:defValue="18"
app:stepSize="1"
app:valueFrom="8"
app:valueTo="30" />
</PreferenceCategory>
<PreferenceCategory app:title="@string/queue">
<SwitchPreferenceCompat
android:defaultValue="true"
android:icon="@drawable/ic_list"
android:title="@string/queue_insert_related_videos"
app:key="queue_insert_related_videos" />
<SwitchPreferenceCompat
android:defaultValue="false"
android:summary="@string/autoplay_playlists_summary"
android:title="@string/autoplay_playlists"
app:key="autoplay_playlists" />
</PreferenceCategory>
<PreferenceCategory app:title="@string/defaults">
<ListPreference
android:defaultValue=""
android:icon="@drawable/ic_caption"
app:key="default_subtitle"
app:title="@string/default_subtitle_language" />
<ListPreference
android:defaultValue="fit"
android:entries="@array/resizeMode"
android:entryValues="@array/resizeModeValues"
android:icon="@drawable/ic_zoom"
app:key="player_resize_mode"
app:title="@string/player_resize_mode"
app:useSimpleSummaryProvider="true" />
<SwitchPreferenceCompat
android:icon="@drawable/ic_speed"
android:summary="@string/autoplay_countdown_summary"
app:defaultValue="false"
app:key="autoplay_countdown"
app:title="@string/autoplay_countdown" />
<SwitchPreferenceCompat
android:defaultValue="false"
android:icon="@drawable/ic_fullscreen"
android:title="@string/auto_fullscreen_shorts"
app:key="auto_fullscreen_shorts" />
<SwitchPreferenceCompat
android:icon="@drawable/ic_headphones"
android:summaryOff="@string/disabled"
android:summaryOn="@string/enabled"
app:disableDependentsState="true"
app:defaultValue="true"
app:key="remember_playback_speed"
app:title="@string/remember_playback_speed" />
<com.github.libretube.ui.views.SliderPreference
android:dependency="remember_playback_speed"
android:icon="@drawable/ic_speed"
app:defValue="1.0"
app:key="playback_speed"
app:stepSize="0.05"
app:title="@string/playback_speed"
app:valueFrom="0.2"
app:valueTo="4.0" />
</PreferenceCategory>
<PreferenceCategory app:title="@string/background_mode">
<SwitchPreferenceCompat
android:icon="@drawable/ic_headphones"
android:summary="@string/custom_playback_speed_summary"
app:defaultValue="false"
app:key="custom_playback_speed"
app:title="@string/custom_playback_speed" />
<com.github.libretube.ui.views.SliderPreference
android:dependency="custom_playback_speed"
android:icon="@drawable/ic_speed"
app:defValue="1.0"
app:key="background_playback_speed"
app:stepSize="0.1"
app:title="@string/playback_speed"
app:valueFrom="0.2"
app:valueTo="4.0" />
</PreferenceCategory>
<PreferenceCategory app:title="@string/misc">
<ListPreference
android:icon="@drawable/ic_time"
app:defaultValue="50"
app:entries="@array/bufferingGoal"
app:entryValues="@array/bufferingGoalValues"
app:key="buffering_goal"
app:summary="@string/buffering_goal_summary"
app:title="@string/buffering_goal" />
<SwitchPreferenceCompat
android:icon="@drawable/ic_call"
android:summary="@string/playback_during_call_summary"
app:defaultValue="false"
app:key="playback_during_call"
app:title="@string/playback_during_call" />
<SwitchPreferenceCompat
android:defaultValue="false"
android:icon="@drawable/ic_headphones"
android:summary="@string/alternative_pip_controls_summary"
app:key="alternative_pip_controls"
app:title="@string/alternative_pip_controls" />
<SwitchPreferenceCompat
android:icon="@drawable/ic_pause_filled"
android:summary="@string/pauseOnScreenOff_summary"
app:defaultValue="false"
app:key="pause_screen_off"
app:title="@string/pauseOnScreenOff" />
</PreferenceCategory>
</PreferenceScreen>