2022-06-18 19:28:41 +05:30
|
|
|
<?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">
|
|
|
|
|
2022-11-25 23:14:39 +05:30
|
|
|
<PreferenceCategory app:title="@string/behavior">
|
2022-06-18 19:28:41 +05:30
|
|
|
|
2022-11-25 23:14:39 +05:30
|
|
|
<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" />
|
|
|
|
|
2023-04-10 18:23:28 +05:30
|
|
|
<SwitchPreferenceCompat
|
|
|
|
android:defaultValue="false"
|
|
|
|
android:icon="@drawable/ic_fullscreen"
|
|
|
|
app:key="fullscreen_gestures"
|
|
|
|
app:title="@string/fullscreen_gestures" />
|
|
|
|
|
2022-12-01 23:03:30 +05:30
|
|
|
<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" />
|
|
|
|
|
2022-11-25 23:14:39 +05:30
|
|
|
<SwitchPreferenceCompat
|
|
|
|
android:defaultValue="false"
|
|
|
|
android:icon="@drawable/ic_next"
|
|
|
|
android:summary="@string/skip_buttons_summary"
|
|
|
|
app:key="skip_buttons"
|
|
|
|
app:title="@string/skip_buttons" />
|
|
|
|
|
2022-11-27 23:11:34 +05:30
|
|
|
<SwitchPreferenceCompat
|
2023-01-04 23:24:34 +05:30
|
|
|
android:defaultValue="true"
|
2022-11-27 23:11:34 +05:30
|
|
|
android:icon="@drawable/ic_skip"
|
|
|
|
android:summary="@string/double_tap_seek_summary"
|
|
|
|
app:key="double_tap_seek"
|
|
|
|
app:title="@string/double_tap_seek" />
|
|
|
|
|
2022-11-25 23:14:39 +05:30
|
|
|
<SwitchPreferenceCompat
|
|
|
|
android:defaultValue="true"
|
|
|
|
android:icon="@drawable/ic_window"
|
|
|
|
app:key="picture_in_picture"
|
|
|
|
app:title="@string/picture_in_picture" />
|
|
|
|
|
2023-01-09 22:08:17 +05:30
|
|
|
<SwitchPreferenceCompat
|
|
|
|
android:defaultValue="false"
|
|
|
|
android:icon="@drawable/ic_headphones"
|
2023-02-22 16:57:03 +05:30
|
|
|
android:summary="@string/alternative_pip_controls_summary"
|
2023-01-09 22:08:17 +05:30
|
|
|
app:key="alternative_pip_controls"
|
2023-02-22 16:57:03 +05:30
|
|
|
app:title="@string/alternative_pip_controls" />
|
2023-01-09 22:08:17 +05:30
|
|
|
|
2022-11-25 23:14:39 +05:30
|
|
|
<SwitchPreferenceCompat
|
2022-12-27 23:18:09 +05:30
|
|
|
android:defaultValue="false"
|
|
|
|
android:icon="@drawable/ic_pause_filled"
|
|
|
|
app:key="pause_on_quit"
|
|
|
|
app:title="@string/pause_on_quit" />
|
|
|
|
|
|
|
|
<SwitchPreferenceCompat
|
2022-11-25 23:14:39 +05:30
|
|
|
android:icon="@drawable/ic_rotating_circle"
|
|
|
|
android:summary="@string/autoRotatePlayer_summary"
|
2023-01-31 20:11:42 +05:30
|
|
|
app:defaultValue="false"
|
2022-11-25 23:14:39 +05:30
|
|
|
app:key="auto_fullscreen"
|
|
|
|
app:title="@string/autoRotatePlayer" />
|
|
|
|
|
|
|
|
<ListPreference
|
|
|
|
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/player">
|
2022-06-18 19:28:41 +05:30
|
|
|
|
2022-09-29 23:09:01 +05:30
|
|
|
<com.github.libretube.ui.views.SliderPreference
|
2022-06-18 21:51:30 +05:30
|
|
|
android:icon="@drawable/ic_skip"
|
2022-09-29 23:54:39 +05:30
|
|
|
app:defValue="10.0"
|
2022-06-18 21:51:30 +05:30
|
|
|
app:key="seek_increment"
|
2022-09-29 23:54:39 +05:30
|
|
|
app:stepSize="5.0"
|
|
|
|
app:title="@string/seek_increment"
|
|
|
|
app:valueFrom="5.0"
|
|
|
|
app:valueTo="60.0" />
|
2022-06-18 21:51:30 +05:30
|
|
|
|
2022-06-18 19:28:41 +05:30
|
|
|
<ListPreference
|
|
|
|
android:icon="@drawable/ic_time"
|
|
|
|
app:defaultValue="50"
|
|
|
|
app:entries="@array/bufferingGoal"
|
2022-06-18 21:51:30 +05:30
|
|
|
app:entryValues="@array/bufferingGoalValues"
|
2022-06-18 19:28:41 +05:30
|
|
|
app:key="buffering_goal"
|
|
|
|
app:summary="@string/buffering_goal_summary"
|
|
|
|
app:title="@string/buffering_goal" />
|
|
|
|
|
2022-11-27 22:20:09 +05:30
|
|
|
<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" />
|
|
|
|
|
2022-07-05 00:49:16 +05:30
|
|
|
</PreferenceCategory>
|
|
|
|
|
2022-11-12 23:10:54 +05:30
|
|
|
<PreferenceCategory app:title="@string/appearance">
|
|
|
|
|
|
|
|
<SwitchPreferenceCompat
|
|
|
|
android:icon="@drawable/ic_caption"
|
|
|
|
app:defaultValue="true"
|
|
|
|
app:key="system_caption_style"
|
|
|
|
app:title="@string/system_caption_style" />
|
|
|
|
|
|
|
|
<Preference
|
|
|
|
android:icon="@drawable/ic_settings"
|
|
|
|
app:key="caption_settings"
|
|
|
|
app:title="@string/caption_settings" />
|
|
|
|
|
|
|
|
</PreferenceCategory>
|
|
|
|
|
2022-11-25 23:14:39 +05:30
|
|
|
<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" />
|
|
|
|
|
|
|
|
</PreferenceCategory>
|
|
|
|
|
|
|
|
|
|
|
|
<PreferenceCategory app:title="@string/defaults">
|
|
|
|
|
|
|
|
<com.github.libretube.ui.views.SliderPreference
|
|
|
|
android:icon="@drawable/ic_speed"
|
|
|
|
app:defValue="1.0"
|
|
|
|
app:key="playback_speed"
|
|
|
|
app:stepSize="0.1"
|
|
|
|
app:title="@string/playback_speed"
|
|
|
|
app:valueFrom="0.2"
|
|
|
|
app:valueTo="4.0" />
|
|
|
|
|
|
|
|
<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" />
|
2022-07-05 00:49:16 +05:30
|
|
|
|
2022-06-18 19:28:41 +05:30
|
|
|
<SwitchPreferenceCompat
|
2022-06-19 17:09:41 +05:30
|
|
|
android:icon="@drawable/ic_play_filled"
|
2022-06-27 22:47:52 +05:30
|
|
|
android:summary="@string/autoplay_summary"
|
2022-07-14 19:27:20 +05:30
|
|
|
app:defaultValue="true"
|
2022-06-18 19:28:41 +05:30
|
|
|
app:key="autoplay"
|
2022-06-27 22:47:52 +05:30
|
|
|
app:title="@string/player_autoplay" />
|
2022-06-20 17:52:28 +05:30
|
|
|
|
2023-02-22 16:57:03 +05:30
|
|
|
<SwitchPreferenceCompat
|
|
|
|
android:icon="@drawable/ic_speed"
|
|
|
|
android:summary="@string/autoplay_countdown_summary"
|
|
|
|
app:defaultValue="false"
|
|
|
|
app:key="autoplay_countdown"
|
|
|
|
app:title="@string/autoplay_countdown" />
|
|
|
|
|
2023-03-24 20:32:56 +05:30
|
|
|
<SwitchPreferenceCompat
|
|
|
|
android:defaultValue="false"
|
|
|
|
android:icon="@drawable/ic_fullscreen"
|
|
|
|
android:title="@string/auto_fullscreen_shorts"
|
|
|
|
app:key="auto_fullscreen_shorts" />
|
|
|
|
|
2022-11-25 23:14:39 +05:30
|
|
|
</PreferenceCategory>
|
2022-08-13 22:36:31 +05:30
|
|
|
|
2023-02-17 00:53:46 +05:30
|
|
|
<PreferenceCategory app:title="@string/background_mode">
|
|
|
|
|
|
|
|
<SwitchPreferenceCompat
|
2023-02-22 16:57:03 +05:30
|
|
|
android:icon="@drawable/ic_headphones"
|
|
|
|
android:summary="@string/custom_playback_speed_summary"
|
2023-02-17 00:53:46 +05:30
|
|
|
app:defaultValue="false"
|
|
|
|
app:key="custom_playback_speed"
|
2023-02-22 16:57:03 +05:30
|
|
|
app:title="@string/custom_playback_speed" />
|
2023-02-17 00:53:46 +05:30
|
|
|
|
|
|
|
<com.github.libretube.ui.views.SliderPreference
|
|
|
|
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>
|
|
|
|
|
2022-11-25 23:14:39 +05:30
|
|
|
<PreferenceCategory app:title="@string/misc">
|
2022-11-25 16:48:37 +05:30
|
|
|
|
2022-06-20 17:52:28 +05:30
|
|
|
<SwitchPreferenceCompat
|
|
|
|
android:icon="@drawable/ic_pause_filled"
|
2022-06-27 22:47:52 +05:30
|
|
|
android:summary="@string/pauseOnScreenOff_summary"
|
2022-07-14 19:27:20 +05:30
|
|
|
app:defaultValue="false"
|
2022-06-20 17:52:28 +05:30
|
|
|
app:key="pause_screen_off"
|
2022-06-27 22:47:52 +05:30
|
|
|
app:title="@string/pauseOnScreenOff" />
|
2022-06-18 19:28:41 +05:30
|
|
|
|
2022-11-22 21:29:24 +05:30
|
|
|
</PreferenceCategory>
|
|
|
|
|
2022-06-18 19:28:41 +05:30
|
|
|
</PreferenceScreen>
|