aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res/xml/settings_playback.xml
blob: fb3501f0c81d5166a2bd2de70340cd5fa051017c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
	xmlns:myns="http://schemas.android.com/apk/res-auto"
	android:title="@string/settings.playback_title">

	<PreferenceCategory
		android:title="@string/settings.playback_title">

		<github.daneren2005.dsub.view.SeekBarPreference
			android:title="@string/settings.playlist_random_size_title"
			android:key="randomSize"
			android:defaultValue="20"
			android:dialogLayout="@layout/seekbar_preference"
			myns:max="100"/>

		<ListPreference
			android:title="@string/settings.keep_played_count_title"
			android:key="keepPlayedCount"
			android:defaultValue="0"
			android:entryValues="@array/keepPlayedCountValues"
			android:entries="@array/keepPlayedCountNames"/>

		<ListPreference
			android:title="@string/settings.temp_loss_title"
			android:key="tempLoss"
			android:defaultValue="1"
			android:entryValues="@array/tempLossValues"
			android:entries="@array/tempLossNames"/>

		<ListPreference
			android:title="@string/settings.disconnect_pause_title"
			android:key="pauseOnDisconnect"
			android:defaultValue="0"
			android:entryValues="@array/disconnectPauseValues"
			android:entries="@array/disconnectPauseNames"/>

		<CheckBoxPreference
			android:title="@string/settings.persistent_title"
			android:summary="@string/settings.persistent_summary"
			android:key="persistentNotification"
			android:defaultValue="false"/>

		<CheckBoxPreference
			android:title="@string/settings.heads_up_notification"
			android:summary="@string/settings.heads_up_notification_summary"
			android:key="headsUpNotification"
			android:defaultValue="false"/>

		<ListPreference
			android:title="@string/settings.song_press_action"
			android:key="songPressAction"
			android:defaultValue="all"
			android:entryValues="@array/songPressActionValues"
			android:entries="@array/songPressActionNames"/>

        <github.daneren2005.dsub.view.SeekBarPreference
            android:title="@string/settings.rewind_interval"
            android:key="rewindInterval"
            android:defaultValue="10"
            android:dialogLayout="@layout/seekbar_preference"
            myns:max="60"/>

        <github.daneren2005.dsub.view.SeekBarPreference
            android:title="@string/settings.fastforward_interval"
            android:key="fastforwardInterval"
            android:defaultValue="30"
            android:dialogLayout="@layout/seekbar_preference"
            myns:max="60"/>
	</PreferenceCategory>

	<PreferenceCategory
		android:title="@string/settings.video_title">

		<ListPreference
			android:title="@string/settings.video_player"
			android:key="videoPlayer"
			android:defaultValue="hls"
			android:entryValues="@array/videoPlayerValues"
			android:entries="@array/videoPlayerNames"/>
	</PreferenceCategory>

	<PreferenceCategory
		android:title="@string/settings.replay_gain">

		<CheckBoxPreference
			android:title="@string/settings.replay_gain"
			android:summary="@string/settings.replay_gain_summary"
			android:key="replayGain"
			android:defaultValue="false"/>

		<ListPreference
			android:title="@string/settings.replay_gain_type"
			android:key="replayGainType"
			android:defaultValue="1"
			android:entryValues="@array/replayGainTypeValues"
			android:entries="@array/replayGainTypeNames"/>

		<github.daneren2005.dsub.view.SeekBarPreference
			android:key="replayGainBump2"
			android:dialogLayout="@layout/seekbar_preference"
			android:title="@string/settings.replay_gain_bump"
			android:defaultValue="150"
			myns:max="150"
			myns:min="-150"
			myns:stepSize="10"
			myns:display="%+.1f dB"/>

		<github.daneren2005.dsub.view.SeekBarPreference
			android:key="replayGainUntagged2"
			android:dialogLayout="@layout/seekbar_preference"
			android:title="@string/settings.replay_gain_untagged"
			android:defaultValue="150"
			myns:max="0"
			myns:min="-150"
			myns:stepSize="10"
			myns:display="%+.1f dB"/>
	</PreferenceCategory>

	<PreferenceCategory
		android:title="@string/settings.other_title"
		android:key="otherSettings">

		<CheckBoxPreference
			android:title="@string/settings.shuffle_by_album"
			android:key="shuffleByAlbum"
			android:defaultValue="true"
			android:summaryOn="@string/settings.shuffle_by_album.true"
			android:summaryOff="@string/settings.shuffle_by_album.false"/>

		<CheckBoxPreference
			android:title="@string/settings.scrobble_title"
			android:summary="@string/settings.scrobble_summary"
			android:key="scrobble"
			android:defaultValue="true"/>

		<CheckBoxPreference
			android:title="@string/settings.media_button_title"
			android:summary="@string/settings.media_button_summary"
			android:key="mediaButtons"
			android:defaultValue="true"/>

		<CheckBoxPreference
			android:title="@string/settings.gapless_playback"
			android:summary="@string/settings.gapless_playback_summary"
			android:key="gaplessPlayback"
			android:defaultValue="true"/>

		<CheckBoxPreference
			android:title="@string/settings.start_on_headphones"
			android:summary="@string/settings.start_on_headphones_summary"
			android:key="startOnHeadphones"
			android:defaultValue="false"/>
	</PreferenceCategory>
</PreferenceScreen>