blob: 544dc00882d8cf3ac7a28dd3ac1fe2d9af27e9a6 [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
Steve Kondik3281bd62016-09-09 23:55:11 -070094 </PreferenceCategory>
95
96 <PreferenceCategory
97 android:key="home_key"
98 android:title="@string/hardware_keys_home_key_title" >
99
100 <cyanogenmod.preference.CMSystemSettingSwitchPreference
101 android:key="home_wake_screen"
102 android:title="@string/button_wake_title"
103 android:defaultValue="true" />
104
105 <SwitchPreference
106 android:key="home_answer_call"
107 android:title="@string/home_answer_call_title"
108 android:summary="@string/home_answer_call_summary"
109 android:persistent="false"/>
110
111 <ListPreference
112 android:key="hardware_keys_home_long_press"
113 android:dialogTitle="@string/hardware_keys_long_press_title"
114 android:title="@string/hardware_keys_long_press_title"
115 android:entries="@array/hardware_keys_action_entries"
116 android:entryValues="@array/hardware_keys_action_values"
117 android:persistent="false" />
118
119 <ListPreference
120 android:key="hardware_keys_home_double_tap"
121 android:dialogTitle="@string/hardware_keys_double_tap_title"
122 android:title="@string/hardware_keys_double_tap_title"
123 android:entries="@array/hardware_keys_action_entries"
124 android:entryValues="@array/hardware_keys_action_values"
125 android:persistent="false" />
126
127 </PreferenceCategory>
128
129 <PreferenceCategory
130 android:key="back_key"
131 android:title="@string/hardware_keys_back_key_title" >
132
133 <cyanogenmod.preference.CMSystemSettingSwitchPreference
134 android:key="back_wake_screen"
135 android:title="@string/button_wake_title"
136 android:defaultValue="false" />
137
138 </PreferenceCategory>
139
140 <PreferenceCategory
141 android:key="menu_key"
142 android:title="@string/hardware_keys_menu_key_title" >
143
144 <cyanogenmod.preference.CMSystemSettingSwitchPreference
145 android:key="menu_wake_screen"
146 android:title="@string/button_wake_title"
147 android:defaultValue="false" />
148
149 <ListPreference
150 android:key="hardware_keys_menu_press"
151 android:dialogTitle="@string/hardware_keys_short_press_title"
152 android:title="@string/hardware_keys_short_press_title"
153 android:entries="@array/hardware_keys_action_entries"
154 android:entryValues="@array/hardware_keys_action_values"
155 android:persistent="false" />
156
157 <ListPreference
158 android:key="hardware_keys_menu_long_press"
159 android:dialogTitle="@string/hardware_keys_long_press_title"
160 android:title="@string/hardware_keys_long_press_title"
161 android:entries="@array/hardware_keys_action_entries"
162 android:entryValues="@array/hardware_keys_action_values"
163 android:persistent="false" />
164
165 </PreferenceCategory>
166
167 <PreferenceCategory
168 android:key="assist_key"
169 android:title="@string/hardware_keys_assist_key_title" >
170
171 <cyanogenmod.preference.CMSystemSettingSwitchPreference
172 android:key="assist_wake_screen"
173 android:title="@string/button_wake_title"
174 android:defaultValue="false" />
175
176 <ListPreference
177 android:key="hardware_keys_assist_press"
178 android:dialogTitle="@string/hardware_keys_short_press_title"
179 android:title="@string/hardware_keys_short_press_title"
180 android:entries="@array/hardware_keys_action_entries"
181 android:entryValues="@array/hardware_keys_action_values"
182 android:persistent="false" />
183
184 <ListPreference
185 android:key="hardware_keys_assist_long_press"
186 android:dialogTitle="@string/hardware_keys_long_press_title"
187 android:title="@string/hardware_keys_long_press_title"
188 android:entries="@array/hardware_keys_action_entries"
189 android:entryValues="@array/hardware_keys_action_values"
190 android:persistent="false" />
191
192 </PreferenceCategory>
193
194 <PreferenceCategory
195 android:key="app_switch_key"
196 android:title="@string/hardware_keys_appswitch_key_title" >
197
198 <cyanogenmod.preference.CMSystemSettingSwitchPreference
199 android:key="app_switch_wake_screen"
200 android:title="@string/button_wake_title"
201 android:defaultValue="false" />
202
203 <ListPreference
204 android:key="hardware_keys_app_switch_press"
205 android:dialogTitle="@string/hardware_keys_short_press_title"
206 android:title="@string/hardware_keys_short_press_title"
207 android:entries="@array/hardware_keys_action_entries"
208 android:entryValues="@array/hardware_keys_action_values"
209 android:persistent="false" />
210
211 <ListPreference
212 android:key="hardware_keys_app_switch_long_press"
213 android:dialogTitle="@string/hardware_keys_long_press_title"
214 android:title="@string/hardware_keys_long_press_title"
215 android:entries="@array/hardware_keys_action_entries"
216 android:entryValues="@array/hardware_keys_action_values"
217 android:persistent="false" />
218
219 </PreferenceCategory>
220
221 <PreferenceCategory
222 android:key="camera_key"
223 android:title="@string/hardware_keys_camera_key_title">
224
225 <cyanogenmod.preference.CMSystemSettingSwitchPreference
226 android:key="camera_wake_screen"
227 android:title="@string/button_wake_title"
228 android:defaultValue="false" />
229
230 <cyanogenmod.preference.CMSystemSettingSwitchPreference
231 android:key="camera_sleep_on_release"
232 android:title="@string/camera_sleep_on_release_title"
233 android:summary="@string/camera_sleep_on_release_summary"
234 android:defaultValue="false" />
235
236 <cyanogenmod.preference.CMSystemSettingSwitchPreference
237 android:key="camera_launch"
238 android:title="@string/camera_launch_title"
239 android:summary="@string/camera_launch_summary"
240 android:defaultValue="false" />
241
242 </PreferenceCategory>
243
244 <PreferenceCategory
245 android:key="volume_keys"
246 android:title="@string/hardware_keys_volume_keys_title" >
247
248 <cyanogenmod.preference.CMSystemSettingSwitchPreference
249 android:key="volume_wake_screen"
250 android:title="@string/button_wake_title"
251 android:defaultValue="false" />
252
253 <cyanogenmod.preference.CMSystemSettingSwitchPreference
martinczb35adf02015-04-03 03:15:41 +0800254 android:key="volume_answer_call"
255 android:title="@string/volume_answer_call_title"
256 android:summary="@string/volume_answer_call_summary"
257 android:defaultValue="false" />
258
259 <cyanogenmod.preference.CMSystemSettingSwitchPreference
Steve Kondik3281bd62016-09-09 23:55:11 -0700260 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>