1 <?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" 26 android:background="@drawable/system_bar_background" 27 > 28 29 <FrameLayout android:id="@+id/rot0" 30 android:layout_height="match_parent" 31 android:layout_width="match_parent" 32 > 33 34 <LinearLayout 35 android:layout_height="match_parent" 36 android:layout_width="match_parent" 37 android:orientation="horizontal" 38 android:clipChildren="false" 39 android:clipToPadding="false" 40 android:id="@+id/nav_buttons" 41 android:animateLayoutChanges="true" 42 > 43 44 <!-- navigation controls --> 45 <View 46 android:layout_width="40dp" 47 android:layout_height="match_parent" 48 android:layout_weight="0" 49 android:visibility="invisible" 50 /> 51 <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/back" 52 android:layout_width="@dimen/navigation_key_width" 53 android:layout_height="match_parent" 54 android:src="@drawable/ic_sysbar_back" 55 systemui:keyCode="4" 56 android:layout_weight="0" 57 android:scaleType="center" 58 systemui:glowBackground="@drawable/ic_sysbar_highlight" 59 android:contentDescription="@string/accessibility_back" 60 /> 61 <View 62 android:layout_width="match_parent" 63 android:layout_height="match_parent" 64 android:layout_weight="1" 65 android:visibility="invisible" 66 /> 67 <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/home" 68 android:layout_width="@dimen/navigation_key_width" 69 android:layout_height="match_parent" 70 android:src="@drawable/ic_sysbar_home" 71 systemui:keyCode="3" 72 systemui:keyRepeat="false" 73 android:layout_weight="0" 74 systemui:glowBackground="@drawable/ic_sysbar_highlight" 75 android:contentDescription="@string/accessibility_home" 76 /> 77 <View 78 android:layout_width="match_parent" 79 android:layout_height="match_parent" 80 android:layout_weight="1" 81 android:visibility="invisible" 82 /> 83 <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/recent_apps" 84 android:layout_width="@dimen/navigation_key_width" 85 android:layout_height="match_parent" 86 android:src="@drawable/ic_sysbar_recent" 87 android:layout_weight="0" 88 systemui:glowBackground="@drawable/ic_sysbar_highlight" 89 android:contentDescription="@string/accessibility_recent" 90 /> 91 <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/menu" 92 android:layout_width="@dimen/navigation_menu_key_width" 93 android:layout_height="match_parent" 94 android:src="@drawable/ic_sysbar_menu" 95 systemui:keyCode="82" 96 android:layout_weight="0" 97 android:visibility="invisible" 98 android:contentDescription="@string/accessibility_menu" 99 systemui:glowBackground="@drawable/ic_sysbar_highlight" 100 /> 101 </LinearLayout> 102 103 <!-- 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_marginStart="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_marginEnd="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 148 <com.android.systemui.statusbar.policy.KeyButtonView 149 android:layout_width="80dp" 150 android:id="@+id/search_light" 151 android:layout_height="match_parent" 152 android:layout_gravity="center_horizontal" 153 android:src="@drawable/search_light" 154 android:scaleType="center" 155 android:visibility="gone" 156 android:contentDescription="@string/accessibility_search_light" 157 /> 158 159 <com.android.systemui.statusbar.policy.DeadZone 160 android:id="@+id/deadzone" 161 android:layout_height="match_parent" 162 android:layout_width="match_parent" 163 systemui:minSize="@dimen/navigation_bar_deadzone_size" 164 systemui:maxSize="@dimen/navigation_bar_deadzone_size_max" 165 systemui:holdTime="@integer/navigation_bar_deadzone_hold" 166 systemui:decayTime="@integer/navigation_bar_deadzone_decay" 167 systemui:orientation="horizontal" 168 android:layout_gravity="top" 169 /> 170 </FrameLayout> 171 172 <FrameLayout android:id="@+id/rot90" 173 android:layout_height="match_parent" 174 android:layout_width="match_parent" 175 android:visibility="gone" 176 android:paddingTop="0dp" 177 > 178 179 <LinearLayout 180 android:layout_height="match_parent" 181 android:layout_width="match_parent" 182 android:orientation="vertical" 183 android:clipChildren="false" 184 android:clipToPadding="false" 185 android:id="@+id/nav_buttons" 186 android:animateLayoutChanges="true" 187 > 188 189 <!-- navigation controls --> 190 <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/menu" 191 android:layout_height="40dp" 192 android:layout_width="match_parent" 193 android:src="@drawable/ic_sysbar_menu_land" 194 systemui:keyCode="82" 195 android:layout_weight="0" 196 android:visibility="invisible" 197 android:contentDescription="@string/accessibility_menu" 198 systemui:glowBackground="@drawable/ic_sysbar_highlight_land" 199 /> 200 <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/back" 201 android:layout_height="80dp" 202 android:layout_width="match_parent" 203 android:src="@drawable/ic_sysbar_back_land" 204 android:scaleType="center" 205 systemui:keyCode="4" 206 android:layout_weight="0" 207 android:contentDescription="@string/accessibility_back" 208 systemui:glowBackground="@drawable/ic_sysbar_highlight_land" 209 /> 210 <View 211 android:layout_height="match_parent" 212 android:layout_width="match_parent" 213 android:layout_weight="1" 214 android:visibility="invisible" 215 /> 216 <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/home" 217 android:layout_height="80dp" 218 android:layout_width="match_parent" 219 android:src="@drawable/ic_sysbar_home_land" 220 systemui:keyCode="3" 221 systemui:keyRepeat="false" 222 android:layout_weight="0" 223 android:contentDescription="@string/accessibility_home" 224 systemui:glowBackground="@drawable/ic_sysbar_highlight_land" 225 /> 226 <View 227 android:layout_height="match_parent" 228 android:layout_width="match_parent" 229 android:layout_weight="1" 230 android:visibility="invisible" 231 /> 232 <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/recent_apps" 233 android:layout_height="80dp" 234 android:layout_width="match_parent" 235 android:src="@drawable/ic_sysbar_recent_land" 236 android:layout_weight="0" 237 android:contentDescription="@string/accessibility_recent" 238 systemui:glowBackground="@drawable/ic_sysbar_highlight_land" 239 /> 240 <View 241 android:layout_height="40dp" 242 android:layout_width="match_parent" 243 android:layout_weight="0" 244 android:visibility="invisible" 245 /> 246 </LinearLayout> 247 248 <!-- lights out layout to match exactly --> 249 <LinearLayout 250 android:layout_height="match_parent" 251 android:layout_width="match_parent" 252 android:orientation="vertical" 253 android:id="@+id/lights_out" 254 android:visibility="gone" 255 > 256 <ImageView 257 android:layout_height="80dp" 258 android:layout_marginTop="40dp" 259 android:layout_width="match_parent" 260 android:src="@drawable/ic_sysbar_lights_out_dot_small" 261 android:scaleType="center" 262 android:layout_weight="0" 263 /> 264 <View 265 android:layout_height="match_parent" 266 android:layout_width="match_parent" 267 android:layout_weight="1" 268 android:visibility="invisible" 269 /> 270 <ImageView 271 android:layout_height="80dp" 272 android:layout_width="match_parent" 273 android:src="@drawable/ic_sysbar_lights_out_dot_large" 274 android:scaleType="center" 275 android:layout_weight="0" 276 /> 277 <View 278 android:layout_height="match_parent" 279 android:layout_width="match_parent" 280 android:layout_weight="1" 281 android:visibility="invisible" 282 /> 283 <ImageView 284 android:layout_height="80dp" 285 android:layout_marginBottom="40dp" 286 android:layout_width="match_parent" 287 android:src="@drawable/ic_sysbar_lights_out_dot_small" 288 android:scaleType="center" 289 android:layout_weight="0" 290 /> 291 </LinearLayout> 292 293 <com.android.systemui.statusbar.policy.KeyButtonView 294 android:id="@+id/search_light" 295 android:layout_height="80dp" 296 android:layout_width="match_parent" 297 android:layout_gravity="center_vertical" 298 android:src="@drawable/search_light" 299 android:scaleType="center" 300 android:visibility="gone" 301 android:contentDescription="@string/accessibility_search_light" 302 /> 303 304 <com.android.systemui.statusbar.policy.DeadZone 305 android:id="@+id/deadzone" 306 android:layout_height="match_parent" 307 android:layout_width="match_parent" 308 systemui:minSize="@dimen/navigation_bar_deadzone_size" 309 systemui:maxSize="@dimen/navigation_bar_deadzone_size_max" 310 systemui:holdTime="@integer/navigation_bar_deadzone_hold" 311 systemui:decayTime="@integer/navigation_bar_deadzone_decay" 312 systemui:orientation="vertical" 313 android:layout_gravity="top" 314 /> 315 </FrameLayout> 316 317 <!-- not used --> 318 <View android:id="@+id/rot270" 319 android:layout_height="match_parent" 320 android:layout_width="match_parent" 321 android:visibility="gone" 322 /> 323 324 </com.android.systemui.statusbar.phone.NavigationBarView> 325