blob: b1104ccd70aee7d4fdad0a7a6f24251bb998a7da [file] [log] [blame]
Daniel Sandler4a066c52012-04-20 14:49:13 -04001<?xml version="1.0" encoding="utf-8"?>
2<!--
3**
4** Copyright 2012, The Android Open Source Project
5**
6** Licensed under the Apache License, Version 2.0 (the "License");
7** you may not use this file except in compliance with the License.
8** You may obtain a copy of the License at
9**
10** http://www.apache.org/licenses/LICENSE-2.0
11**
12** Unless required by applicable law or agreed to in writing, software
13** distributed under the License is distributed on an "AS IS" BASIS,
14** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15** See the License for the specific language governing permissions and
16** limitations under the License.
17-->
18
19<!-- navigation bar for sw600dp (small tablets) -->
20<com.android.systemui.statusbar.phone.NavigationBarView
21 xmlns:android="http://schemas.android.com/apk/res/android"
22 xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui"
23 android:layout_height="match_parent"
24 android:layout_width="match_parent"
25 android:background="#FF000000"
26 >
27
28 <FrameLayout android:id="@+id/rot0"
29 android:layout_height="match_parent"
30 android:layout_width="match_parent"
31 >
32
33 <LinearLayout
34 android:layout_height="match_parent"
35 android:layout_width="match_parent"
36 android:orientation="horizontal"
37 android:clipChildren="false"
38 android:clipToPadding="false"
39 android:id="@+id/nav_buttons"
40 android:animateLayoutChanges="true"
41 >
42
43 <!-- navigation controls -->
Daniel Sandler4a066c52012-04-20 14:49:13 -040044 <View
45 android:layout_width="48dp"
46 android:layout_height="match_parent"
47 android:layout_weight="0"
Daniel Sandler4f85eb52012-05-01 13:50:29 -040048 android:layout_marginLeft="2dp"
Daniel Sandler4a066c52012-04-20 14:49:13 -040049 android:visibility="invisible"
50 />
Daniel Sandler4f85eb52012-05-01 13:50:29 -040051 <Space
52 android:layout_width="match_parent"
53 android:layout_height="match_parent"
54 android:layout_weight="1"
55 />
Daniel Sandler4a066c52012-04-20 14:49:13 -040056 <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/back"
Daniel Sandler6ae7b582012-04-23 17:10:38 -040057 android:layout_width="128dp" android:paddingLeft="25dp" android:paddingRight="25dp"
Daniel Sandler4a066c52012-04-20 14:49:13 -040058 android:layout_height="match_parent"
59 android:src="@drawable/ic_sysbar_back"
60 systemui:keyCode="4"
61 android:layout_weight="0"
62 systemui:glowBackground="@drawable/ic_sysbar_highlight"
63 android:contentDescription="@string/accessibility_back"
64 />
Daniel Sandler4a066c52012-04-20 14:49:13 -040065 <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/home"
Daniel Sandler6ae7b582012-04-23 17:10:38 -040066 android:layout_width="128dp" android:paddingLeft="25dp" android:paddingRight="25dp"
Daniel Sandler4a066c52012-04-20 14:49:13 -040067 android:layout_height="match_parent"
68 android:src="@drawable/ic_sysbar_home"
69 systemui:keyCode="3"
70 systemui:keyRepeat="true"
71 android:layout_weight="0"
72 systemui:glowBackground="@drawable/ic_sysbar_highlight"
73 android:contentDescription="@string/accessibility_home"
74 />
Daniel Sandler4a066c52012-04-20 14:49:13 -040075 <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/recent_apps"
Daniel Sandler6ae7b582012-04-23 17:10:38 -040076 android:layout_width="128dp" android:paddingLeft="25dp" android:paddingRight="25dp"
Daniel Sandler4a066c52012-04-20 14:49:13 -040077 android:layout_height="match_parent"
78 android:src="@drawable/ic_sysbar_recent"
79 android:layout_weight="0"
80 systemui:glowBackground="@drawable/ic_sysbar_highlight"
81 android:contentDescription="@string/accessibility_recent"
82 />
Daniel Sandler4f85eb52012-05-01 13:50:29 -040083 <Space
84 android:layout_width="match_parent"
85 android:layout_height="match_parent"
86 android:layout_weight="1"
87 />
Daniel Sandler4a066c52012-04-20 14:49:13 -040088 <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/menu"
89 android:layout_width="48dp"
90 android:layout_height="match_parent"
91 android:src="@drawable/ic_sysbar_menu"
Daniel Sandler4f85eb52012-05-01 13:50:29 -040092 android:layout_marginRight="2dp"
Daniel Sandler4a066c52012-04-20 14:49:13 -040093 systemui:keyCode="82"
94 android:layout_weight="0"
95 android:visibility="invisible"
96 android:contentDescription="@string/accessibility_menu"
97 systemui:glowBackground="@drawable/ic_sysbar_highlight"
98 />
Daniel Sandler4a066c52012-04-20 14:49:13 -040099 </LinearLayout>
100
101 <!-- lights out layout to match exactly -->
102 <LinearLayout
103 android:layout_height="match_parent"
104 android:layout_width="match_parent"
105 android:orientation="horizontal"
106 android:id="@+id/lights_out"
107 android:visibility="gone"
108 >
109 <Space
110 android:layout_width="match_parent"
111 android:layout_height="match_parent"
112 android:layout_weight="1"
113 />
114 <ImageView
Daniel Sandler6ae7b582012-04-23 17:10:38 -0400115 android:layout_width="128dp" android:paddingLeft="25dp" android:paddingRight="25dp"
Daniel Sandler4a066c52012-04-20 14:49:13 -0400116 android:layout_height="match_parent"
117 android:layout_marginLeft="40dp"
118 android:src="@drawable/ic_sysbar_lights_out_dot_small"
119 android:scaleType="center"
120 android:layout_weight="0"
121 />
Daniel Sandler4a066c52012-04-20 14:49:13 -0400122 <ImageView
Daniel Sandler6ae7b582012-04-23 17:10:38 -0400123 android:layout_width="128dp" android:paddingLeft="25dp" android:paddingRight="25dp"
Daniel Sandler4a066c52012-04-20 14:49:13 -0400124 android:layout_height="match_parent"
125 android:src="@drawable/ic_sysbar_lights_out_dot_large"
126 android:scaleType="center"
127 android:layout_weight="0"
128 />
Daniel Sandler4a066c52012-04-20 14:49:13 -0400129 <ImageView
Daniel Sandler6ae7b582012-04-23 17:10:38 -0400130 android:layout_width="128dp" android:paddingLeft="25dp" android:paddingRight="25dp"
Daniel Sandler4a066c52012-04-20 14:49:13 -0400131 android:layout_marginRight="40dp"
132 android:layout_height="match_parent"
133 android:src="@drawable/ic_sysbar_lights_out_dot_small"
134 android:scaleType="center"
135 android:layout_weight="0"
136 />
137 <Space
138 android:layout_width="match_parent"
139 android:layout_height="match_parent"
140 android:layout_weight="1"
141 />
142 </LinearLayout>
143
Jim Millerc120b6e2012-11-12 17:54:22 -0800144 <com.android.systemui.statusbar.policy.KeyButtonView
Daniel Sandlerd5483c32012-10-19 16:44:15 -0400145 android:layout_width="128dp"
146 android:id="@+id/search_light"
147 android:layout_height="match_parent"
148 android:layout_gravity="center_horizontal"
Daniel Sandlerf837e412012-11-07 21:17:57 -0500149 android:src="@drawable/search_light"
Daniel Sandlerd5483c32012-10-19 16:44:15 -0400150 android:scaleType="center"
151 android:visibility="gone"
152 />
153
Daniel Sandler4a066c52012-04-20 14:49:13 -0400154 <com.android.systemui.statusbar.policy.DeadZone
155 android:id="@+id/deadzone"
Daniel Sandlerc26185b2012-08-29 15:49:53 -0400156 android:layout_height="match_parent"
Daniel Sandler4a066c52012-04-20 14:49:13 -0400157 android:layout_width="match_parent"
Daniel Sandlerc26185b2012-08-29 15:49:53 -0400158 systemui:minSize="@dimen/navigation_bar_deadzone_size"
159 systemui:maxSize="@dimen/navigation_bar_deadzone_size_max"
160 systemui:holdTime="@integer/navigation_bar_deadzone_hold"
161 systemui:decayTime="@integer/navigation_bar_deadzone_decay"
162 systemui:orientation="horizontal"
Daniel Sandler4a066c52012-04-20 14:49:13 -0400163 android:layout_gravity="top"
164 />
165 </FrameLayout>
166
167 <FrameLayout android:id="@+id/rot90"
168 android:layout_height="match_parent"
169 android:layout_width="match_parent"
170 android:visibility="gone"
171 android:paddingTop="0dp"
172 >
173
174 <LinearLayout
175 android:layout_height="match_parent"
176 android:layout_width="match_parent"
177 android:orientation="horizontal"
178 android:clipChildren="false"
179 android:clipToPadding="false"
180 android:id="@+id/nav_buttons"
181 android:animateLayoutChanges="true"
182 >
183
184 <!-- navigation controls -->
Daniel Sandler4a066c52012-04-20 14:49:13 -0400185 <View
186 android:layout_width="48dp"
187 android:layout_height="match_parent"
188 android:layout_weight="0"
Daniel Sandler4f85eb52012-05-01 13:50:29 -0400189 android:layout_marginLeft="2dp"
Daniel Sandler4a066c52012-04-20 14:49:13 -0400190 android:visibility="invisible"
191 />
Daniel Sandler4f85eb52012-05-01 13:50:29 -0400192 <Space
193 android:layout_width="match_parent"
194 android:layout_height="match_parent"
195 android:layout_weight="1"
196 />
Daniel Sandler4a066c52012-04-20 14:49:13 -0400197 <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/back"
Daniel Sandler6ae7b582012-04-23 17:10:38 -0400198 android:layout_width="162dp" android:paddingLeft="42dp" android:paddingRight="42dp"
Daniel Sandler4a066c52012-04-20 14:49:13 -0400199 android:layout_height="match_parent"
200 android:src="@drawable/ic_sysbar_back"
201 systemui:keyCode="4"
202 android:layout_weight="0"
203 systemui:glowBackground="@drawable/ic_sysbar_highlight"
204 android:contentDescription="@string/accessibility_back"
205 />
Daniel Sandler4a066c52012-04-20 14:49:13 -0400206 <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/home"
Daniel Sandler6ae7b582012-04-23 17:10:38 -0400207 android:layout_width="162dp" android:paddingLeft="42dp" android:paddingRight="42dp"
Daniel Sandler4a066c52012-04-20 14:49:13 -0400208 android:layout_height="match_parent"
209 android:src="@drawable/ic_sysbar_home"
210 systemui:keyCode="3"
211 systemui:keyRepeat="true"
212 android:layout_weight="0"
213 systemui:glowBackground="@drawable/ic_sysbar_highlight"
214 android:contentDescription="@string/accessibility_home"
215 />
Daniel Sandler4a066c52012-04-20 14:49:13 -0400216 <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/recent_apps"
Daniel Sandler6ae7b582012-04-23 17:10:38 -0400217 android:layout_width="162dp" android:paddingLeft="42dp" android:paddingRight="42dp"
Daniel Sandler4a066c52012-04-20 14:49:13 -0400218 android:layout_height="match_parent"
219 android:src="@drawable/ic_sysbar_recent"
220 android:layout_weight="0"
221 systemui:glowBackground="@drawable/ic_sysbar_highlight"
222 android:contentDescription="@string/accessibility_recent"
223 />
Daniel Sandler4f85eb52012-05-01 13:50:29 -0400224 <Space
225 android:layout_width="match_parent"
226 android:layout_height="match_parent"
227 android:layout_weight="1"
228 />
Daniel Sandler4a066c52012-04-20 14:49:13 -0400229 <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/menu"
230 android:layout_width="48dp"
231 android:layout_height="match_parent"
Daniel Sandler4f85eb52012-05-01 13:50:29 -0400232 android:layout_marginRight="2dp"
Daniel Sandler4a066c52012-04-20 14:49:13 -0400233 android:src="@drawable/ic_sysbar_menu"
234 systemui:keyCode="82"
235 android:layout_weight="0"
236 android:visibility="invisible"
237 android:contentDescription="@string/accessibility_menu"
238 systemui:glowBackground="@drawable/ic_sysbar_highlight"
239 />
Daniel Sandler4a066c52012-04-20 14:49:13 -0400240 </LinearLayout>
241
242 <!-- lights out layout to match exactly -->
243 <LinearLayout
244 android:layout_height="match_parent"
245 android:layout_width="match_parent"
246 android:orientation="horizontal"
247 android:id="@+id/lights_out"
248 android:visibility="gone"
249 >
250 <Space
251 android:layout_width="match_parent"
252 android:layout_height="match_parent"
253 android:layout_weight="1"
254 />
255 <ImageView
Daniel Sandler6ae7b582012-04-23 17:10:38 -0400256 android:layout_width="162dp" android:paddingLeft="42dp" android:paddingRight="42dp"
Daniel Sandler4a066c52012-04-20 14:49:13 -0400257 android:layout_height="match_parent"
258 android:layout_marginLeft="40dp"
259 android:src="@drawable/ic_sysbar_lights_out_dot_small"
260 android:scaleType="center"
261 android:layout_weight="0"
262 />
Daniel Sandler4a066c52012-04-20 14:49:13 -0400263 <ImageView
Daniel Sandler6ae7b582012-04-23 17:10:38 -0400264 android:layout_width="162dp" android:paddingLeft="42dp" android:paddingRight="42dp"
Daniel Sandler4a066c52012-04-20 14:49:13 -0400265 android:layout_height="match_parent"
266 android:src="@drawable/ic_sysbar_lights_out_dot_large"
267 android:scaleType="center"
268 android:layout_weight="0"
269 />
Daniel Sandler4a066c52012-04-20 14:49:13 -0400270 <ImageView
Daniel Sandler6ae7b582012-04-23 17:10:38 -0400271 android:layout_width="162dp" android:paddingLeft="42dp" android:paddingRight="42dp"
Daniel Sandler4a066c52012-04-20 14:49:13 -0400272 android:layout_marginRight="40dp"
273 android:layout_height="match_parent"
274 android:src="@drawable/ic_sysbar_lights_out_dot_small"
275 android:scaleType="center"
276 android:layout_weight="0"
277 />
278 <Space
279 android:layout_width="match_parent"
280 android:layout_height="match_parent"
281 android:layout_weight="1"
282 />
283 </LinearLayout>
284
Jim Millerc120b6e2012-11-12 17:54:22 -0800285 <com.android.systemui.statusbar.policy.KeyButtonView
Daniel Sandlerd5483c32012-10-19 16:44:15 -0400286 android:layout_width="162dp"
287 android:id="@+id/search_light"
288 android:layout_height="match_parent"
289 android:layout_gravity="center_horizontal"
Daniel Sandlerf837e412012-11-07 21:17:57 -0500290 android:src="@drawable/search_light"
Daniel Sandlerd5483c32012-10-19 16:44:15 -0400291 android:scaleType="center"
292 android:visibility="gone"
293 />
294
Daniel Sandler4a066c52012-04-20 14:49:13 -0400295 <com.android.systemui.statusbar.policy.DeadZone
296 android:id="@+id/deadzone"
Daniel Sandlerc26185b2012-08-29 15:49:53 -0400297 android:layout_height="match_parent"
Daniel Sandler4a066c52012-04-20 14:49:13 -0400298 android:layout_width="match_parent"
Daniel Sandlerc26185b2012-08-29 15:49:53 -0400299 systemui:minSize="@dimen/navigation_bar_deadzone_size"
300 systemui:maxSize="@dimen/navigation_bar_deadzone_size_max"
301 systemui:holdTime="@integer/navigation_bar_deadzone_hold"
302 systemui:decayTime="@integer/navigation_bar_deadzone_decay"
303 systemui:orientation="vertical"
Daniel Sandler4a066c52012-04-20 14:49:13 -0400304 android:layout_gravity="top"
305 />
306 </FrameLayout>
307
308 <!-- not used -->
309 <View android:id="@+id/rot270"
310 android:layout_height="match_parent"
311 android:layout_width="match_parent"
312 android:visibility="gone"
313 />
314
315</com.android.systemui.statusbar.phone.NavigationBarView>