Daniel Sandler | 4a066c5 | 2012-04-20 14:49:13 -0400 | [diff] [blame] | 1 | <?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 Sandler | 4a066c5 | 2012-04-20 14:49:13 -0400 | [diff] [blame] | 44 | <View |
| 45 | android:layout_width="48dp" |
| 46 | android:layout_height="match_parent" |
| 47 | android:layout_weight="0" |
Daniel Sandler | 4f85eb5 | 2012-05-01 13:50:29 -0400 | [diff] [blame] | 48 | android:layout_marginLeft="2dp" |
Daniel Sandler | 4a066c5 | 2012-04-20 14:49:13 -0400 | [diff] [blame] | 49 | android:visibility="invisible" |
| 50 | /> |
Daniel Sandler | 4f85eb5 | 2012-05-01 13:50:29 -0400 | [diff] [blame] | 51 | <Space |
| 52 | android:layout_width="match_parent" |
| 53 | android:layout_height="match_parent" |
| 54 | android:layout_weight="1" |
| 55 | /> |
Daniel Sandler | 4a066c5 | 2012-04-20 14:49:13 -0400 | [diff] [blame] | 56 | <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/back" |
Daniel Sandler | 6ae7b58 | 2012-04-23 17:10:38 -0400 | [diff] [blame] | 57 | android:layout_width="128dp" android:paddingLeft="25dp" android:paddingRight="25dp" |
Daniel Sandler | 4a066c5 | 2012-04-20 14:49:13 -0400 | [diff] [blame] | 58 | 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 Sandler | 4a066c5 | 2012-04-20 14:49:13 -0400 | [diff] [blame] | 65 | <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/home" |
Daniel Sandler | 6ae7b58 | 2012-04-23 17:10:38 -0400 | [diff] [blame] | 66 | android:layout_width="128dp" android:paddingLeft="25dp" android:paddingRight="25dp" |
Daniel Sandler | 4a066c5 | 2012-04-20 14:49:13 -0400 | [diff] [blame] | 67 | 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 Sandler | 4a066c5 | 2012-04-20 14:49:13 -0400 | [diff] [blame] | 75 | <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/recent_apps" |
Daniel Sandler | 6ae7b58 | 2012-04-23 17:10:38 -0400 | [diff] [blame] | 76 | android:layout_width="128dp" android:paddingLeft="25dp" android:paddingRight="25dp" |
Daniel Sandler | 4a066c5 | 2012-04-20 14:49:13 -0400 | [diff] [blame] | 77 | 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 Sandler | 4f85eb5 | 2012-05-01 13:50:29 -0400 | [diff] [blame] | 83 | <Space |
| 84 | android:layout_width="match_parent" |
| 85 | android:layout_height="match_parent" |
| 86 | android:layout_weight="1" |
| 87 | /> |
Daniel Sandler | 4a066c5 | 2012-04-20 14:49:13 -0400 | [diff] [blame] | 88 | <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 Sandler | 4f85eb5 | 2012-05-01 13:50:29 -0400 | [diff] [blame] | 92 | android:layout_marginRight="2dp" |
Daniel Sandler | 4a066c5 | 2012-04-20 14:49:13 -0400 | [diff] [blame] | 93 | 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 Sandler | 4a066c5 | 2012-04-20 14:49:13 -0400 | [diff] [blame] | 99 | </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 Sandler | 6ae7b58 | 2012-04-23 17:10:38 -0400 | [diff] [blame] | 115 | android:layout_width="128dp" android:paddingLeft="25dp" android:paddingRight="25dp" |
Daniel Sandler | 4a066c5 | 2012-04-20 14:49:13 -0400 | [diff] [blame] | 116 | 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 Sandler | 4a066c5 | 2012-04-20 14:49:13 -0400 | [diff] [blame] | 122 | <ImageView |
Daniel Sandler | 6ae7b58 | 2012-04-23 17:10:38 -0400 | [diff] [blame] | 123 | android:layout_width="128dp" android:paddingLeft="25dp" android:paddingRight="25dp" |
Daniel Sandler | 4a066c5 | 2012-04-20 14:49:13 -0400 | [diff] [blame] | 124 | 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 Sandler | 4a066c5 | 2012-04-20 14:49:13 -0400 | [diff] [blame] | 129 | <ImageView |
Daniel Sandler | 6ae7b58 | 2012-04-23 17:10:38 -0400 | [diff] [blame] | 130 | android:layout_width="128dp" android:paddingLeft="25dp" android:paddingRight="25dp" |
Daniel Sandler | 4a066c5 | 2012-04-20 14:49:13 -0400 | [diff] [blame] | 131 | 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 Miller | c120b6e | 2012-11-12 17:54:22 -0800 | [diff] [blame] | 144 | <com.android.systemui.statusbar.policy.KeyButtonView |
Daniel Sandler | d5483c3 | 2012-10-19 16:44:15 -0400 | [diff] [blame] | 145 | android:layout_width="128dp" |
| 146 | android:id="@+id/search_light" |
| 147 | android:layout_height="match_parent" |
| 148 | android:layout_gravity="center_horizontal" |
Daniel Sandler | f837e41 | 2012-11-07 21:17:57 -0500 | [diff] [blame] | 149 | android:src="@drawable/search_light" |
Daniel Sandler | d5483c3 | 2012-10-19 16:44:15 -0400 | [diff] [blame] | 150 | android:scaleType="center" |
| 151 | android:visibility="gone" |
| 152 | /> |
| 153 | |
Daniel Sandler | 4a066c5 | 2012-04-20 14:49:13 -0400 | [diff] [blame] | 154 | <com.android.systemui.statusbar.policy.DeadZone |
| 155 | android:id="@+id/deadzone" |
Daniel Sandler | c26185b | 2012-08-29 15:49:53 -0400 | [diff] [blame] | 156 | android:layout_height="match_parent" |
Daniel Sandler | 4a066c5 | 2012-04-20 14:49:13 -0400 | [diff] [blame] | 157 | android:layout_width="match_parent" |
Daniel Sandler | c26185b | 2012-08-29 15:49:53 -0400 | [diff] [blame] | 158 | 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 Sandler | 4a066c5 | 2012-04-20 14:49:13 -0400 | [diff] [blame] | 163 | 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 Sandler | 4a066c5 | 2012-04-20 14:49:13 -0400 | [diff] [blame] | 185 | <View |
| 186 | android:layout_width="48dp" |
| 187 | android:layout_height="match_parent" |
| 188 | android:layout_weight="0" |
Daniel Sandler | 4f85eb5 | 2012-05-01 13:50:29 -0400 | [diff] [blame] | 189 | android:layout_marginLeft="2dp" |
Daniel Sandler | 4a066c5 | 2012-04-20 14:49:13 -0400 | [diff] [blame] | 190 | android:visibility="invisible" |
| 191 | /> |
Daniel Sandler | 4f85eb5 | 2012-05-01 13:50:29 -0400 | [diff] [blame] | 192 | <Space |
| 193 | android:layout_width="match_parent" |
| 194 | android:layout_height="match_parent" |
| 195 | android:layout_weight="1" |
| 196 | /> |
Daniel Sandler | 4a066c5 | 2012-04-20 14:49:13 -0400 | [diff] [blame] | 197 | <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/back" |
Daniel Sandler | 6ae7b58 | 2012-04-23 17:10:38 -0400 | [diff] [blame] | 198 | android:layout_width="162dp" android:paddingLeft="42dp" android:paddingRight="42dp" |
Daniel Sandler | 4a066c5 | 2012-04-20 14:49:13 -0400 | [diff] [blame] | 199 | 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 Sandler | 4a066c5 | 2012-04-20 14:49:13 -0400 | [diff] [blame] | 206 | <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/home" |
Daniel Sandler | 6ae7b58 | 2012-04-23 17:10:38 -0400 | [diff] [blame] | 207 | android:layout_width="162dp" android:paddingLeft="42dp" android:paddingRight="42dp" |
Daniel Sandler | 4a066c5 | 2012-04-20 14:49:13 -0400 | [diff] [blame] | 208 | 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 Sandler | 4a066c5 | 2012-04-20 14:49:13 -0400 | [diff] [blame] | 216 | <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/recent_apps" |
Daniel Sandler | 6ae7b58 | 2012-04-23 17:10:38 -0400 | [diff] [blame] | 217 | android:layout_width="162dp" android:paddingLeft="42dp" android:paddingRight="42dp" |
Daniel Sandler | 4a066c5 | 2012-04-20 14:49:13 -0400 | [diff] [blame] | 218 | 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 Sandler | 4f85eb5 | 2012-05-01 13:50:29 -0400 | [diff] [blame] | 224 | <Space |
| 225 | android:layout_width="match_parent" |
| 226 | android:layout_height="match_parent" |
| 227 | android:layout_weight="1" |
| 228 | /> |
Daniel Sandler | 4a066c5 | 2012-04-20 14:49:13 -0400 | [diff] [blame] | 229 | <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/menu" |
| 230 | android:layout_width="48dp" |
| 231 | android:layout_height="match_parent" |
Daniel Sandler | 4f85eb5 | 2012-05-01 13:50:29 -0400 | [diff] [blame] | 232 | android:layout_marginRight="2dp" |
Daniel Sandler | 4a066c5 | 2012-04-20 14:49:13 -0400 | [diff] [blame] | 233 | 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 Sandler | 4a066c5 | 2012-04-20 14:49:13 -0400 | [diff] [blame] | 240 | </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 Sandler | 6ae7b58 | 2012-04-23 17:10:38 -0400 | [diff] [blame] | 256 | android:layout_width="162dp" android:paddingLeft="42dp" android:paddingRight="42dp" |
Daniel Sandler | 4a066c5 | 2012-04-20 14:49:13 -0400 | [diff] [blame] | 257 | 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 Sandler | 4a066c5 | 2012-04-20 14:49:13 -0400 | [diff] [blame] | 263 | <ImageView |
Daniel Sandler | 6ae7b58 | 2012-04-23 17:10:38 -0400 | [diff] [blame] | 264 | android:layout_width="162dp" android:paddingLeft="42dp" android:paddingRight="42dp" |
Daniel Sandler | 4a066c5 | 2012-04-20 14:49:13 -0400 | [diff] [blame] | 265 | 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 Sandler | 4a066c5 | 2012-04-20 14:49:13 -0400 | [diff] [blame] | 270 | <ImageView |
Daniel Sandler | 6ae7b58 | 2012-04-23 17:10:38 -0400 | [diff] [blame] | 271 | android:layout_width="162dp" android:paddingLeft="42dp" android:paddingRight="42dp" |
Daniel Sandler | 4a066c5 | 2012-04-20 14:49:13 -0400 | [diff] [blame] | 272 | 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 Miller | c120b6e | 2012-11-12 17:54:22 -0800 | [diff] [blame] | 285 | <com.android.systemui.statusbar.policy.KeyButtonView |
Daniel Sandler | d5483c3 | 2012-10-19 16:44:15 -0400 | [diff] [blame] | 286 | android:layout_width="162dp" |
| 287 | android:id="@+id/search_light" |
| 288 | android:layout_height="match_parent" |
| 289 | android:layout_gravity="center_horizontal" |
Daniel Sandler | f837e41 | 2012-11-07 21:17:57 -0500 | [diff] [blame] | 290 | android:src="@drawable/search_light" |
Daniel Sandler | d5483c3 | 2012-10-19 16:44:15 -0400 | [diff] [blame] | 291 | android:scaleType="center" |
| 292 | android:visibility="gone" |
| 293 | /> |
| 294 | |
Daniel Sandler | 4a066c5 | 2012-04-20 14:49:13 -0400 | [diff] [blame] | 295 | <com.android.systemui.statusbar.policy.DeadZone |
| 296 | android:id="@+id/deadzone" |
Daniel Sandler | c26185b | 2012-08-29 15:49:53 -0400 | [diff] [blame] | 297 | android:layout_height="match_parent" |
Daniel Sandler | 4a066c5 | 2012-04-20 14:49:13 -0400 | [diff] [blame] | 298 | android:layout_width="match_parent" |
Daniel Sandler | c26185b | 2012-08-29 15:49:53 -0400 | [diff] [blame] | 299 | 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 Sandler | 4a066c5 | 2012-04-20 14:49:13 -0400 | [diff] [blame] | 304 | 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> |