blob: da52d89cb2873d51858c40b13a3d508c8f6f104b [file] [log] [blame]
Daniel Sandler8956dbb2011-04-22 07:55:02 -04001<?xml version="1.0" encoding="utf-8"?>
2<!--
3/* apps/common/assets/default/default/skins/StatusBar.xml
4**
5** Copyright 2011, The Android Open Source Project
6**
7** Licensed under the Apache License, Version 2.0 (the "License");
8** you may not use this file except in compliance with the License.
9** You may obtain a copy of the License at
10**
11** http://www.apache.org/licenses/LICENSE-2.0
12**
13** Unless required by applicable law or agreed to in writing, software
14** distributed under the License is distributed on an "AS IS" BASIS,
15** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16** See the License for the specific language governing permissions and
17** limitations under the License.
18*/
19-->
20
21<com.android.systemui.statusbar.phone.NavigationBarView
22 xmlns:android="http://schemas.android.com/apk/res/android"
23 xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui"
24 android:layout_height="match_parent"
25 android:layout_width="match_parent"
Daniel Sandlere137a1e2011-08-17 16:47:19 -040026 android:background="#FF000000"
Daniel Sandler8956dbb2011-04-22 07:55:02 -040027 >
28
Daniel Sandler41006aa2011-06-29 15:10:49 -040029 <FrameLayout android:id="@+id/rot0"
Daniel Sandler8956dbb2011-04-22 07:55:02 -040030 android:layout_height="match_parent"
31 android:layout_width="match_parent"
Daniel Sandler8956dbb2011-04-22 07:55:02 -040032 >
33
Daniel Sandler41006aa2011-06-29 15:10:49 -040034 <LinearLayout
Daniel Sandler1d4d30a2011-04-28 12:35:29 -040035 android:layout_height="match_parent"
Daniel Sandler8956dbb2011-04-22 07:55:02 -040036 android:layout_width="match_parent"
Daniel Sandler1d4d30a2011-04-28 12:35:29 -040037 android:orientation="horizontal"
Daniel Sandler52985822011-07-29 08:42:15 -040038 android:clipChildren="false"
39 android:clipToPadding="false"
Daniel Sandler96f48182011-08-17 09:50:35 -040040 android:id="@+id/nav_buttons"
Daniel Sandler029d5872011-09-12 00:58:58 -040041 android:animateLayoutChanges="true"
Daniel Sandler1d4d30a2011-04-28 12:35:29 -040042 >
Daniel Sandler8956dbb2011-04-22 07:55:02 -040043
Daniel Sandler1d4d30a2011-04-28 12:35:29 -040044 <!-- navigation controls -->
Daniel Sandler5c8da942011-06-28 00:29:04 -040045 <View
Daniel Sandler41006aa2011-06-29 15:10:49 -040046 android:layout_width="40dp"
Daniel Sandler1d4d30a2011-04-28 12:35:29 -040047 android:layout_height="match_parent"
Daniel Sandler5c8da942011-06-28 00:29:04 -040048 android:layout_weight="0"
Daniel Sandler52985822011-07-29 08:42:15 -040049 android:visibility="invisible"
Daniel Sandler5c8da942011-06-28 00:29:04 -040050 />
51 <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/back"
Andrew Flynn1d9af302012-03-07 15:48:51 -080052 android:layout_width="@dimen/navigation_key_width"
Daniel Sandler5c8da942011-06-28 00:29:04 -040053 android:layout_height="match_parent"
Daniel Sandlera375c942011-07-29 00:33:53 -040054 android:src="@drawable/ic_sysbar_back"
Daniel Sandler1d4d30a2011-04-28 12:35:29 -040055 systemui:keyCode="4"
Daniel Sandler5c8da942011-06-28 00:29:04 -040056 android:layout_weight="0"
Daniel Sandler2c9ae752012-04-27 00:14:54 -040057 android:scaleType="center"
Daniel Sandler52985822011-07-29 08:42:15 -040058 systemui:glowBackground="@drawable/ic_sysbar_highlight"
59 android:contentDescription="@string/accessibility_back"
Daniel Sandler5c8da942011-06-28 00:29:04 -040060 />
61 <View
62 android:layout_width="match_parent"
63 android:layout_height="match_parent"
Daniel Sandler1d4d30a2011-04-28 12:35:29 -040064 android:layout_weight="1"
Daniel Sandler52985822011-07-29 08:42:15 -040065 android:visibility="invisible"
Daniel Sandler1d4d30a2011-04-28 12:35:29 -040066 />
67 <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/home"
Andrew Flynn1d9af302012-03-07 15:48:51 -080068 android:layout_width="@dimen/navigation_key_width"
Daniel Sandler1d4d30a2011-04-28 12:35:29 -040069 android:layout_height="match_parent"
Daniel Sandlera375c942011-07-29 00:33:53 -040070 android:src="@drawable/ic_sysbar_home"
Daniel Sandler1d4d30a2011-04-28 12:35:29 -040071 systemui:keyCode="3"
Michael Jurkafa100962012-05-16 16:22:35 -070072 systemui:keyRepeat="false"
Daniel Sandler5c8da942011-06-28 00:29:04 -040073 android:layout_weight="0"
Daniel Sandler52985822011-07-29 08:42:15 -040074 systemui:glowBackground="@drawable/ic_sysbar_highlight"
75 android:contentDescription="@string/accessibility_home"
Daniel Sandler5c8da942011-06-28 00:29:04 -040076 />
77 <View
78 android:layout_width="match_parent"
79 android:layout_height="match_parent"
Daniel Sandler1d4d30a2011-04-28 12:35:29 -040080 android:layout_weight="1"
Daniel Sandler52985822011-07-29 08:42:15 -040081 android:visibility="invisible"
Daniel Sandler1d4d30a2011-04-28 12:35:29 -040082 />
Daniel Sandlera375c942011-07-29 00:33:53 -040083 <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/recent_apps"
Andrew Flynn1d9af302012-03-07 15:48:51 -080084 android:layout_width="@dimen/navigation_key_width"
Daniel Sandler1d4d30a2011-04-28 12:35:29 -040085 android:layout_height="match_parent"
Daniel Sandlera375c942011-07-29 00:33:53 -040086 android:src="@drawable/ic_sysbar_recent"
Daniel Sandler5c8da942011-06-28 00:29:04 -040087 android:layout_weight="0"
Daniel Sandler52985822011-07-29 08:42:15 -040088 systemui:glowBackground="@drawable/ic_sysbar_highlight"
89 android:contentDescription="@string/accessibility_recent"
Daniel Sandler5c8da942011-06-28 00:29:04 -040090 />
91 <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/menu"
Andrew Flynn1d9af302012-03-07 15:48:51 -080092 android:layout_width="@dimen/navigation_menu_key_width"
Daniel Sandler5c8da942011-06-28 00:29:04 -040093 android:layout_height="match_parent"
Daniel Sandlera375c942011-07-29 00:33:53 -040094 android:src="@drawable/ic_sysbar_menu"
Daniel Sandler1d4d30a2011-04-28 12:35:29 -040095 systemui:keyCode="82"
Daniel Sandler5c8da942011-06-28 00:29:04 -040096 android:layout_weight="0"
97 android:visibility="invisible"
Svetoslav Ganov6179ea32011-06-28 01:12:41 -070098 android:contentDescription="@string/accessibility_menu"
Daniel Sandler52985822011-07-29 08:42:15 -040099 systemui:glowBackground="@drawable/ic_sysbar_highlight"
Daniel Sandler1d4d30a2011-04-28 12:35:29 -0400100 />
101 </LinearLayout>
Daniel Sandler8956dbb2011-04-22 07:55:02 -0400102
Daniel Sandlere137a1e2011-08-17 16:47:19 -0400103 <!-- lights out layout to match exactly -->
104 <LinearLayout
105 android:layout_height="match_parent"
106 android:layout_width="match_parent"
107 android:orientation="horizontal"
108 android:id="@+id/lights_out"
109 android:visibility="gone"
110 >
111 <ImageView
112 android:layout_width="80dp"
113 android:layout_height="match_parent"
114 android:layout_marginLeft="40dp"
115 android:src="@drawable/ic_sysbar_lights_out_dot_small"
116 android:scaleType="center"
117 android:layout_weight="0"
118 />
119 <View
120 android:layout_width="match_parent"
121 android:layout_height="match_parent"
122 android:layout_weight="1"
123 android:visibility="invisible"
124 />
125 <ImageView
126 android:layout_width="80dp"
127 android:layout_height="match_parent"
128 android:src="@drawable/ic_sysbar_lights_out_dot_large"
129 android:scaleType="center"
130 android:layout_weight="0"
131 />
132 <View
133 android:layout_width="match_parent"
134 android:layout_height="match_parent"
135 android:layout_weight="1"
136 android:visibility="invisible"
137 />
138 <ImageView
139 android:layout_width="80dp"
140 android:layout_marginRight="40dp"
141 android:layout_height="match_parent"
142 android:src="@drawable/ic_sysbar_lights_out_dot_small"
143 android:scaleType="center"
144 android:layout_weight="0"
145 />
146 </LinearLayout>
147
Jim Millerc120b6e2012-11-12 17:54:22 -0800148 <com.android.systemui.statusbar.policy.KeyButtonView
Daniel Sandlerd5483c32012-10-19 16:44:15 -0400149 android:layout_width="80dp"
150 android:id="@+id/search_light"
151 android:layout_height="match_parent"
152 android:layout_gravity="center_horizontal"
Daniel Sandlerf837e412012-11-07 21:17:57 -0500153 android:src="@drawable/search_light"
Daniel Sandlerd5483c32012-10-19 16:44:15 -0400154 android:scaleType="center"
155 android:visibility="gone"
156 />
157
Daniel Sandlere97a7762012-03-19 22:56:42 -0400158 <com.android.systemui.statusbar.policy.DeadZone
159 android:id="@+id/deadzone"
Daniel Sandlerc26185b2012-08-29 15:49:53 -0400160 android:layout_height="match_parent"
Daniel Sandler41006aa2011-06-29 15:10:49 -0400161 android:layout_width="match_parent"
Daniel Sandlerc26185b2012-08-29 15:49:53 -0400162 systemui:minSize="@dimen/navigation_bar_deadzone_size"
163 systemui:maxSize="@dimen/navigation_bar_deadzone_size_max"
164 systemui:holdTime="@integer/navigation_bar_deadzone_hold"
165 systemui:decayTime="@integer/navigation_bar_deadzone_decay"
166 systemui:orientation="horizontal"
Daniel Sandler41006aa2011-06-29 15:10:49 -0400167 android:layout_gravity="top"
Daniel Sandler41006aa2011-06-29 15:10:49 -0400168 />
169 </FrameLayout>
170
171 <FrameLayout android:id="@+id/rot90"
172 android:layout_height="match_parent"
173 android:layout_width="match_parent"
Daniel Sandler41006aa2011-06-29 15:10:49 -0400174 android:visibility="gone"
Daniel Sandler9929fa32011-10-28 16:47:09 -0400175 android:paddingTop="0dp"
Daniel Sandler41006aa2011-06-29 15:10:49 -0400176 >
177
178 <LinearLayout
Daniel Sandler1d4d30a2011-04-28 12:35:29 -0400179 android:layout_height="match_parent"
Daniel Sandler8956dbb2011-04-22 07:55:02 -0400180 android:layout_width="match_parent"
Daniel Sandler1d4d30a2011-04-28 12:35:29 -0400181 android:orientation="vertical"
Daniel Sandler52985822011-07-29 08:42:15 -0400182 android:clipChildren="false"
183 android:clipToPadding="false"
Daniel Sandler96f48182011-08-17 09:50:35 -0400184 android:id="@+id/nav_buttons"
Daniel Sandler029d5872011-09-12 00:58:58 -0400185 android:animateLayoutChanges="true"
Daniel Sandler1d4d30a2011-04-28 12:35:29 -0400186 >
Daniel Sandler5c8da942011-06-28 00:29:04 -0400187
Daniel Sandler1d4d30a2011-04-28 12:35:29 -0400188 <!-- navigation controls -->
189 <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/menu"
Daniel Sandler41006aa2011-06-29 15:10:49 -0400190 android:layout_height="40dp"
Daniel Sandler1d4d30a2011-04-28 12:35:29 -0400191 android:layout_width="match_parent"
Daniel Sandlera375c942011-07-29 00:33:53 -0400192 android:src="@drawable/ic_sysbar_menu_land"
Daniel Sandler1d4d30a2011-04-28 12:35:29 -0400193 systemui:keyCode="82"
Daniel Sandler5c8da942011-06-28 00:29:04 -0400194 android:layout_weight="0"
195 android:visibility="invisible"
Daniel Sandlere137a1e2011-08-17 16:47:19 -0400196 android:contentDescription="@string/accessibility_menu"
197 systemui:glowBackground="@drawable/ic_sysbar_highlight_land"
Daniel Sandler5c8da942011-06-28 00:29:04 -0400198 />
Daniel Sandler52985822011-07-29 08:42:15 -0400199 <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/recent_apps"
Daniel Sandler41006aa2011-06-29 15:10:49 -0400200 android:layout_height="80dp"
Daniel Sandler5c8da942011-06-28 00:29:04 -0400201 android:layout_width="match_parent"
Daniel Sandlera375c942011-07-29 00:33:53 -0400202 android:src="@drawable/ic_sysbar_recent_land"
Daniel Sandler5c8da942011-06-28 00:29:04 -0400203 android:layout_weight="0"
Daniel Sandler52985822011-07-29 08:42:15 -0400204 android:contentDescription="@string/accessibility_recent"
205 systemui:glowBackground="@drawable/ic_sysbar_highlight_land"
Daniel Sandler5c8da942011-06-28 00:29:04 -0400206 />
207 <View
208 android:layout_height="match_parent"
209 android:layout_width="match_parent"
Daniel Sandler1d4d30a2011-04-28 12:35:29 -0400210 android:layout_weight="1"
Daniel Sandler52985822011-07-29 08:42:15 -0400211 android:visibility="invisible"
Daniel Sandler1d4d30a2011-04-28 12:35:29 -0400212 />
213 <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/home"
Daniel Sandler41006aa2011-06-29 15:10:49 -0400214 android:layout_height="80dp"
Daniel Sandler1d4d30a2011-04-28 12:35:29 -0400215 android:layout_width="match_parent"
Daniel Sandlera375c942011-07-29 00:33:53 -0400216 android:src="@drawable/ic_sysbar_home_land"
Daniel Sandler1d4d30a2011-04-28 12:35:29 -0400217 systemui:keyCode="3"
Daniel Sandler44a46162011-08-09 16:48:21 -0400218 systemui:keyRepeat="false"
Daniel Sandler5c8da942011-06-28 00:29:04 -0400219 android:layout_weight="0"
Svetoslav Ganov6179ea32011-06-28 01:12:41 -0700220 android:contentDescription="@string/accessibility_home"
Daniel Sandler52985822011-07-29 08:42:15 -0400221 systemui:glowBackground="@drawable/ic_sysbar_highlight_land"
Daniel Sandler5c8da942011-06-28 00:29:04 -0400222 />
223 <View
224 android:layout_height="match_parent"
225 android:layout_width="match_parent"
Daniel Sandler1d4d30a2011-04-28 12:35:29 -0400226 android:layout_weight="1"
Daniel Sandler52985822011-07-29 08:42:15 -0400227 android:visibility="invisible"
Daniel Sandler1d4d30a2011-04-28 12:35:29 -0400228 />
229 <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/back"
Daniel Sandler41006aa2011-06-29 15:10:49 -0400230 android:layout_height="80dp"
Daniel Sandler1d4d30a2011-04-28 12:35:29 -0400231 android:layout_width="match_parent"
Daniel Sandlera375c942011-07-29 00:33:53 -0400232 android:src="@drawable/ic_sysbar_back_land"
Daniel Sandler2c9ae752012-04-27 00:14:54 -0400233 android:scaleType="center"
Daniel Sandler1d4d30a2011-04-28 12:35:29 -0400234 systemui:keyCode="4"
Daniel Sandler5c8da942011-06-28 00:29:04 -0400235 android:layout_weight="0"
Daniel Sandler52985822011-07-29 08:42:15 -0400236 android:contentDescription="@string/accessibility_back"
237 systemui:glowBackground="@drawable/ic_sysbar_highlight_land"
Daniel Sandler5c8da942011-06-28 00:29:04 -0400238 />
Daniel Sandlere137a1e2011-08-17 16:47:19 -0400239 <View
Daniel Sandler41006aa2011-06-29 15:10:49 -0400240 android:layout_height="40dp"
Daniel Sandler5c8da942011-06-28 00:29:04 -0400241 android:layout_width="match_parent"
242 android:layout_weight="0"
Daniel Sandler52985822011-07-29 08:42:15 -0400243 android:visibility="invisible"
Daniel Sandlere137a1e2011-08-17 16:47:19 -0400244 />
245 </LinearLayout>
246
247 <!-- lights out layout to match exactly -->
248 <LinearLayout
249 android:layout_height="match_parent"
250 android:layout_width="match_parent"
251 android:orientation="vertical"
252 android:id="@+id/lights_out"
253 android:visibility="gone"
254 >
255 <ImageView
256 android:layout_height="80dp"
257 android:layout_marginTop="40dp"
258 android:layout_width="match_parent"
259 android:src="@drawable/ic_sysbar_lights_out_dot_small"
260 android:scaleType="center"
261 android:layout_weight="0"
262 />
263 <View
264 android:layout_height="match_parent"
265 android:layout_width="match_parent"
266 android:layout_weight="1"
267 android:visibility="invisible"
268 />
269 <ImageView
270 android:layout_height="80dp"
271 android:layout_width="match_parent"
272 android:src="@drawable/ic_sysbar_lights_out_dot_large"
273 android:scaleType="center"
274 android:layout_weight="0"
275 />
276 <View
277 android:layout_height="match_parent"
278 android:layout_width="match_parent"
279 android:layout_weight="1"
280 android:visibility="invisible"
281 />
282 <ImageView
283 android:layout_height="80dp"
284 android:layout_marginBottom="40dp"
285 android:layout_width="match_parent"
286 android:src="@drawable/ic_sysbar_lights_out_dot_small"
287 android:scaleType="center"
288 android:layout_weight="0"
Daniel Sandler1d4d30a2011-04-28 12:35:29 -0400289 />
290 </LinearLayout>
291
Jim Millerc120b6e2012-11-12 17:54:22 -0800292 <com.android.systemui.statusbar.policy.KeyButtonView
Daniel Sandlerd5483c32012-10-19 16:44:15 -0400293 android:id="@+id/search_light"
294 android:layout_height="80dp"
295 android:layout_width="match_parent"
296 android:layout_gravity="center_vertical"
Daniel Sandlerf837e412012-11-07 21:17:57 -0500297 android:src="@drawable/search_light"
Daniel Sandlerd5483c32012-10-19 16:44:15 -0400298 android:scaleType="center"
299 android:visibility="gone"
300 />
301
Daniel Sandlere97a7762012-03-19 22:56:42 -0400302 <com.android.systemui.statusbar.policy.DeadZone
303 android:id="@+id/deadzone"
Daniel Sandler1d4d30a2011-04-28 12:35:29 -0400304 android:layout_height="match_parent"
Daniel Sandlerc26185b2012-08-29 15:49:53 -0400305 android:layout_width="match_parent"
306 systemui:minSize="@dimen/navigation_bar_deadzone_size"
307 systemui:maxSize="@dimen/navigation_bar_deadzone_size_max"
308 systemui:holdTime="@integer/navigation_bar_deadzone_hold"
309 systemui:decayTime="@integer/navigation_bar_deadzone_decay"
310 systemui:orientation="vertical"
311 android:layout_gravity="top"
Daniel Sandler41006aa2011-06-29 15:10:49 -0400312 />
Daniel Sandler1d4d30a2011-04-28 12:35:29 -0400313 </FrameLayout>
Daniel Sandler41006aa2011-06-29 15:10:49 -0400314
315 <!-- not used -->
316 <View android:id="@+id/rot270"
317 android:layout_height="match_parent"
318 android:layout_width="match_parent"
319 android:visibility="gone"
320 />
321
Daniel Sandler8956dbb2011-04-22 07:55:02 -0400322</com.android.systemui.statusbar.phone.NavigationBarView>