blob: c587fca0ac6133dd9e35405374ea521c99ef28d4 [file] [log] [blame]
Steve Kondik3281bd62016-09-09 23:55:11 -07001<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2008 The Android Open Source Project
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15-->
16
Steve Kondik165ebdf2016-10-07 00:17:49 -070017<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
18 android:key="button_settings"
19 android:title="@string/button_pref_title">
Steve Kondik3281bd62016-09-09 23:55:11 -070020
21 <SwitchPreference
22 android:key="disable_nav_keys"
23 android:title="@string/disable_navkeys_title"
24 android:summary="@string/disable_navkeys_summary"
25 android:defaultValue="false" />
26
27 <org.cyanogenmod.cmparts.input.ButtonBacklightBrightness
28 android:key="button_backlight"
29 android:title="@string/button_backlight_title"
30 android:dialogTitle="@string/button_backlight_title"
31 android:persistent="false" />
32
33 <PreferenceCategory
34 android:key="navigation_bar_category"
35 android:title="@string/navigation_bar_category" >
36
37 <cyanogenmod.preference.CMSystemSettingSwitchPreference
38 android:key="navigation_bar_left"
39 android:title="@string/navigation_bar_left_title"
40 android:summary="@string/navigation_bar_left_summary"
41 android:defaultValue="false" />
42
43 <cyanogenmod.preference.CMSystemSettingSwitchPreference
44 android:key="navigation_bar_menu_arrow_keys"
45 android:title="@string/navigation_bar_arrow_keys_title"
46 android:summary="@string/navigation_bar_arrow_keys_summary"
47 android:defaultValue="false" />
48
49 <PreferenceScreen
50 android:key="navigation_bar"
51 android:title="@string/navigation_bar_title">
52 <intent android:action="com.android.settings.action.NAV_BAR_TUNER" />
53 </PreferenceScreen>
54
55 <ListPreference
Sam Mortimerc1be6042016-10-29 12:25:19 -070056 android:key="navigation_home_long_press"
57 android:dialogTitle="@string/navigation_bar_home_long_press_title"
58 android:title="@string/navigation_bar_home_long_press_title"
59 android:entries="@array/hardware_keys_action_entries"
60 android:entryValues="@array/hardware_keys_action_values"
61 android:persistent="false" />
62
63 <ListPreference
64 android:key="navigation_home_double_tap"
65 android:dialogTitle="@string/navigation_bar_home_double_tap_title"
66 android:title="@string/navigation_bar_home_double_tap_title"
67 android:entries="@array/hardware_keys_action_entries"
68 android:entryValues="@array/hardware_keys_action_values"
69 android:persistent="false" />
70
71 <ListPreference
Steve Kondik3281bd62016-09-09 23:55:11 -070072 android:key="navigation_recents_long_press"
73 android:dialogTitle="@string/navigation_bar_recents_title"
74 android:title="@string/navigation_bar_recents_title"
75 android:persistent="false" />
76
77 </PreferenceCategory>
78
79 <PreferenceCategory
80 android:key="power_key"
81 android:title="@string/hardware_keys_power_key_title" >
82
83 <PreferenceScreen
84 android:key="power_menu"
85 android:title="@string/power_menu_title"
86 android:fragment="org.cyanogenmod.cmparts.input.PowerMenuActions" />
87
88 <SwitchPreference
89 android:key="power_end_call"
90 android:title="@string/power_end_call_title"
91 android:summary="@string/power_end_call_summary"
92 android:persistent="false"/>
93
94 <SwitchPreference
95 android:key="camera_double_tap_power_gesture"
96 android:title="@string/camera_double_tap_power_gesture_title"
97 android:summary="@string/camera_double_tap_power_gesture_desc"
98 android:persistent="false" />
99
100 </PreferenceCategory>
101
102 <PreferenceCategory
103 android:key="home_key"
104 android:title="@string/hardware_keys_home_key_title" >
105
106 <cyanogenmod.preference.CMSystemSettingSwitchPreference
107 android:key="home_wake_screen"
108 android:title="@string/button_wake_title"
109 android:defaultValue="true" />
110
111 <SwitchPreference
112 android:key="home_answer_call"
113 android:title="@string/home_answer_call_title"
114 android:summary="@string/home_answer_call_summary"
115 android:persistent="false"/>
116
117 <ListPreference
118 android:key="hardware_keys_home_long_press"
119 android:dialogTitle="@string/hardware_keys_long_press_title"
120 android:title="@string/hardware_keys_long_press_title"
121 android:entries="@array/hardware_keys_action_entries"
122 android:entryValues="@array/hardware_keys_action_values"
123 android:persistent="false" />
124
125 <ListPreference
126 android:key="hardware_keys_home_double_tap"
127 android:dialogTitle="@string/hardware_keys_double_tap_title"
128 android:title="@string/hardware_keys_double_tap_title"
129 android:entries="@array/hardware_keys_action_entries"
130 android:entryValues="@array/hardware_keys_action_values"
131 android:persistent="false" />
132
133 </PreferenceCategory>
134
135 <PreferenceCategory
136 android:key="back_key"
137 android:title="@string/hardware_keys_back_key_title" >
138
139 <cyanogenmod.preference.CMSystemSettingSwitchPreference
140 android:key="back_wake_screen"
141 android:title="@string/button_wake_title"
142 android:defaultValue="false" />
143
144 </PreferenceCategory>
145
146 <PreferenceCategory
147 android:key="menu_key"
148 android:title="@string/hardware_keys_menu_key_title" >
149
150 <cyanogenmod.preference.CMSystemSettingSwitchPreference
151 android:key="menu_wake_screen"
152 android:title="@string/button_wake_title"
153 android:defaultValue="false" />
154
155 <ListPreference
156 android:key="hardware_keys_menu_press"
157 android:dialogTitle="@string/hardware_keys_short_press_title"
158 android:title="@string/hardware_keys_short_press_title"
159 android:entries="@array/hardware_keys_action_entries"
160 android:entryValues="@array/hardware_keys_action_values"
161 android:persistent="false" />
162
163 <ListPreference
164 android:key="hardware_keys_menu_long_press"
165 android:dialogTitle="@string/hardware_keys_long_press_title"
166 android:title="@string/hardware_keys_long_press_title"
167 android:entries="@array/hardware_keys_action_entries"
168 android:entryValues="@array/hardware_keys_action_values"
169 android:persistent="false" />
170
171 </PreferenceCategory>
172
173 <PreferenceCategory
174 android:key="assist_key"
175 android:title="@string/hardware_keys_assist_key_title" >
176
177 <cyanogenmod.preference.CMSystemSettingSwitchPreference
178 android:key="assist_wake_screen"
179 android:title="@string/button_wake_title"
180 android:defaultValue="false" />
181
182 <ListPreference
183 android:key="hardware_keys_assist_press"
184 android:dialogTitle="@string/hardware_keys_short_press_title"
185 android:title="@string/hardware_keys_short_press_title"
186 android:entries="@array/hardware_keys_action_entries"
187 android:entryValues="@array/hardware_keys_action_values"
188 android:persistent="false" />
189
190 <ListPreference
191 android:key="hardware_keys_assist_long_press"
192 android:dialogTitle="@string/hardware_keys_long_press_title"
193 android:title="@string/hardware_keys_long_press_title"
194 android:entries="@array/hardware_keys_action_entries"
195 android:entryValues="@array/hardware_keys_action_values"
196 android:persistent="false" />
197
198 </PreferenceCategory>
199
200 <PreferenceCategory
201 android:key="app_switch_key"
202 android:title="@string/hardware_keys_appswitch_key_title" >
203
204 <cyanogenmod.preference.CMSystemSettingSwitchPreference
205 android:key="app_switch_wake_screen"
206 android:title="@string/button_wake_title"
207 android:defaultValue="false" />
208
209 <ListPreference
210 android:key="hardware_keys_app_switch_press"
211 android:dialogTitle="@string/hardware_keys_short_press_title"
212 android:title="@string/hardware_keys_short_press_title"
213 android:entries="@array/hardware_keys_action_entries"
214 android:entryValues="@array/hardware_keys_action_values"
215 android:persistent="false" />
216
217 <ListPreference
218 android:key="hardware_keys_app_switch_long_press"
219 android:dialogTitle="@string/hardware_keys_long_press_title"
220 android:title="@string/hardware_keys_long_press_title"
221 android:entries="@array/hardware_keys_action_entries"
222 android:entryValues="@array/hardware_keys_action_values"
223 android:persistent="false" />
224
225 </PreferenceCategory>
226
227 <PreferenceCategory
228 android:key="camera_key"
229 android:title="@string/hardware_keys_camera_key_title">
230
231 <cyanogenmod.preference.CMSystemSettingSwitchPreference
232 android:key="camera_wake_screen"
233 android:title="@string/button_wake_title"
234 android:defaultValue="false" />
235
236 <cyanogenmod.preference.CMSystemSettingSwitchPreference
237 android:key="camera_sleep_on_release"
238 android:title="@string/camera_sleep_on_release_title"
239 android:summary="@string/camera_sleep_on_release_summary"
240 android:defaultValue="false" />
241
242 <cyanogenmod.preference.CMSystemSettingSwitchPreference
243 android:key="camera_launch"
244 android:title="@string/camera_launch_title"
245 android:summary="@string/camera_launch_summary"
246 android:defaultValue="false" />
247
248 </PreferenceCategory>
249
250 <PreferenceCategory
251 android:key="volume_keys"
252 android:title="@string/hardware_keys_volume_keys_title" >
253
254 <cyanogenmod.preference.CMSystemSettingSwitchPreference
255 android:key="volume_wake_screen"
256 android:title="@string/button_wake_title"
257 android:defaultValue="false" />
258
259 <cyanogenmod.preference.CMSystemSettingSwitchPreference
260 android:key="volbtn_music_controls"
261 android:title="@string/volbtn_music_controls_title"
262 android:summary="@string/volbtn_music_controls_summary"
263 android:defaultValue="true" />
264
265 <cyanogenmod.preference.CMSystemSettingSwitchPreference
266 android:key="volume_keys_control_ring_stream"
267 android:title="@string/volume_keys_control_ring_stream_title"
268 android:summaryOn="@string/volume_keys_control_ring_stream_summary_on"
269 android:summaryOff="@string/volume_keys_control_ring_stream_summary_off"
270 android:defaultValue="true" />
271
272 <ListPreference
273 android:key="volume_key_cursor_control"
274 android:dialogTitle="@string/volbtn_cursor_control_title"
275 android:title="@string/volbtn_cursor_control_title"
276 android:entries="@array/volbtn_cursor_control_entries"
277 android:entryValues="@array/volbtn_cursor_control_values"
278 android:persistent="false" />
279
280 <SwitchPreference
281 android:key="swap_volume_buttons"
282 android:title="@string/swap_volume_buttons_title"
283 android:summary="@string/swap_volume_buttons_summary" />
284 </PreferenceCategory>
285
286</PreferenceScreen>