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-auto" 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="@dimen/navigation_side_padding" 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 android:contentDescription="@string/accessibility_back" 59 /> 60 <View 61 android:layout_width="0dp" 62 android:layout_height="match_parent" 63 android:layout_weight="1" 64 android:visibility="invisible" 65 /> 66 <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/home" 67 android:layout_width="@dimen/navigation_key_width" 68 android:layout_height="match_parent" 69 android:src="@drawable/ic_sysbar_home" 70 systemui:keyCode="3" 71 systemui:keyRepeat="false" 72 android:layout_weight="0" 73 android:scaleType="center" 74 android:contentDescription="@string/accessibility_home" 75 /> 76 <View 77 android:layout_width="0dp" 78 android:layout_height="match_parent" 79 android:layout_weight="1" 80 android:visibility="invisible" 81 /> 82 <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/recent_apps" 83 android:layout_width="@dimen/navigation_key_width" 84 android:layout_height="match_parent" 85 android:src="@drawable/ic_sysbar_recent" 86 android:layout_weight="0" 87 android:scaleType="center" 88 android:contentDescription="@string/accessibility_recent" 89 /> 90 <FrameLayout 91 android:layout_width="@dimen/navigation_side_padding" 92 android:layout_height="match_parent" 93 android:layout_weight="0" > 94 <com.android.systemui.statusbar.policy.KeyButtonView 95 android:id="@+id/menu" 96 android:layout_width="@dimen/navigation_extra_key_width" 97 android:layout_height="match_parent" 98 android:contentDescription="@string/accessibility_menu" 99 android:src="@drawable/ic_sysbar_menu" 100 android:visibility="invisible" 101 android:scaleType="centerInside" 102 android:layout_gravity="end" 103 systemui:keyCode="82" /> 104 105 <com.android.systemui.statusbar.policy.KeyButtonView 106 android:id="@+id/ime_switcher" 107 android:layout_width="@dimen/navigation_extra_key_width" 108 android:layout_height="match_parent" 109 android:contentDescription="@string/accessibility_ime_switch_button" 110 android:scaleType="centerInside" 111 android:src="@drawable/ic_ime_switcher_default" 112 android:visibility="invisible" 113 android:layout_gravity="end" /> 114 </FrameLayout> 115 116 </LinearLayout> 117 118 <!-- lights out layout to match exactly --> 119 <LinearLayout 120 android:layout_height="match_parent" 121 android:layout_width="match_parent" 122 android:orientation="horizontal" 123 android:id="@+id/lights_out" 124 android:visibility="gone" 125 > 126 <ImageView 127 android:layout_width="@dimen/navigation_key_width" 128 android:layout_height="match_parent" 129 android:layout_marginStart="@dimen/navigation_side_padding" 130 android:src="@drawable/ic_sysbar_lights_out_dot_small" 131 android:scaleType="center" 132 android:layout_weight="0" 133 /> 134 <View 135 android:layout_width="match_parent" 136 android:layout_height="match_parent" 137 android:layout_weight="1" 138 android:visibility="invisible" 139 /> 140 <ImageView 141 android:layout_width="@dimen/navigation_key_width" 142 android:layout_height="match_parent" 143 android:src="@drawable/ic_sysbar_lights_out_dot_large" 144 android:scaleType="center" 145 android:layout_weight="0" 146 /> 147 <View 148 android:layout_width="match_parent" 149 android:layout_height="match_parent" 150 android:layout_weight="1" 151 android:visibility="invisible" 152 /> 153 <ImageView 154 android:layout_width="@dimen/navigation_key_width" 155 android:layout_marginEnd="@dimen/navigation_side_padding" 156 android:layout_height="match_parent" 157 android:src="@drawable/ic_sysbar_lights_out_dot_small" 158 android:scaleType="center" 159 android:layout_weight="0" 160 /> 161 </LinearLayout> 162 163 <com.android.systemui.statusbar.policy.DeadZone 164 android:id="@+id/deadzone" 165 android:layout_height="match_parent" 166 android:layout_width="match_parent" 167 systemui:minSize="@dimen/navigation_bar_deadzone_size" 168 systemui:maxSize="@dimen/navigation_bar_deadzone_size_max" 169 systemui:holdTime="@integer/navigation_bar_deadzone_hold" 170 systemui:decayTime="@integer/navigation_bar_deadzone_decay" 171 systemui:orientation="horizontal" 172 android:layout_gravity="top" 173 /> 174 </FrameLayout> 175 176 <FrameLayout android:id="@+id/rot90" 177 android:layout_height="match_parent" 178 android:layout_width="match_parent" 179 android:visibility="gone" 180 android:paddingTop="0dp" 181 > 182 183 <LinearLayout 184 android:layout_height="match_parent" 185 android:layout_width="match_parent" 186 android:orientation="vertical" 187 android:clipChildren="false" 188 android:clipToPadding="false" 189 android:id="@+id/nav_buttons" 190 android:animateLayoutChanges="true" 191 > 192 193 <!-- navigation controls --> 194 <FrameLayout 195 android:layout_weight="0" 196 android:layout_width="match_parent" 197 android:layout_height="@dimen/navigation_side_padding" > 198 <com.android.systemui.statusbar.policy.KeyButtonView 199 android:id="@+id/ime_switcher" 200 android:layout_width="match_parent" 201 android:layout_height="@dimen/navigation_extra_key_width" 202 android:contentDescription="@string/accessibility_ime_switch_button" 203 android:scaleType="centerInside" 204 android:src="@drawable/ic_ime_switcher_default" 205 android:layout_gravity="top" 206 android:visibility="invisible" /> 207 208 <com.android.systemui.statusbar.policy.KeyButtonView 209 android:id="@+id/menu" 210 android:layout_width="match_parent" 211 android:layout_height="40dp" 212 android:contentDescription="@string/accessibility_menu" 213 android:src="@drawable/ic_sysbar_menu_land" 214 android:scaleType="centerInside" 215 android:layout_gravity="top" 216 android:visibility="invisible" 217 systemui:keyCode="82" /> 218 </FrameLayout> 219 220 <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/recent_apps" 221 android:layout_height="@dimen/navigation_key_width" 222 android:layout_width="match_parent" 223 android:src="@drawable/ic_sysbar_recent_land" 224 android:scaleType="center" 225 android:layout_weight="0" 226 android:contentDescription="@string/accessibility_recent" 227 /> 228 <View 229 android:layout_height="match_parent" 230 android:layout_width="match_parent" 231 android:layout_weight="1" 232 android:visibility="invisible" 233 /> 234 <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/home" 235 android:layout_height="@dimen/navigation_key_width" 236 android:layout_width="match_parent" 237 android:src="@drawable/ic_sysbar_home_land" 238 android:scaleType="center" 239 systemui:keyCode="3" 240 systemui:keyRepeat="false" 241 android:layout_weight="0" 242 android:contentDescription="@string/accessibility_home" 243 /> 244 <View 245 android:layout_height="match_parent" 246 android:layout_width="match_parent" 247 android:layout_weight="1" 248 android:visibility="invisible" 249 /> 250 <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/back" 251 android:layout_height="@dimen/navigation_key_width" 252 android:layout_width="match_parent" 253 android:src="@drawable/ic_sysbar_back_land" 254 android:scaleType="center" 255 systemui:keyCode="4" 256 android:layout_weight="0" 257 android:contentDescription="@string/accessibility_back" 258 /> 259 <View 260 android:layout_height="@dimen/navigation_side_padding" 261 android:layout_width="match_parent" 262 android:layout_weight="0" 263 android:visibility="invisible" 264 /> 265 </LinearLayout> 266 267 <!-- lights out layout to match exactly --> 268 <LinearLayout 269 android:layout_height="match_parent" 270 android:layout_width="match_parent" 271 android:orientation="vertical" 272 android:id="@+id/lights_out" 273 android:visibility="gone" 274 > 275 <ImageView 276 android:layout_height="@dimen/navigation_key_width" 277 android:layout_marginTop="@dimen/navigation_side_padding" 278 android:layout_width="match_parent" 279 android:src="@drawable/ic_sysbar_lights_out_dot_small" 280 android:scaleType="center" 281 android:layout_weight="0" 282 /> 283 <View 284 android:layout_height="match_parent" 285 android:layout_width="match_parent" 286 android:layout_weight="1" 287 android:visibility="invisible" 288 /> 289 <ImageView 290 android:layout_height="@dimen/navigation_key_width" 291 android:layout_width="match_parent" 292 android:src="@drawable/ic_sysbar_lights_out_dot_large" 293 android:scaleType="center" 294 android:layout_weight="0" 295 /> 296 <View 297 android:layout_height="match_parent" 298 android:layout_width="match_parent" 299 android:layout_weight="1" 300 android:visibility="invisible" 301 /> 302 <ImageView 303 android:layout_height="@dimen/navigation_key_width" 304 android:layout_marginBottom="@dimen/navigation_side_padding" 305 android:layout_width="match_parent" 306 android:src="@drawable/ic_sysbar_lights_out_dot_small" 307 android:scaleType="center" 308 android:layout_weight="0" 309 /> 310 </LinearLayout> 311 312 <com.android.systemui.statusbar.policy.DeadZone 313 android:id="@+id/deadzone" 314 android:layout_height="match_parent" 315 android:layout_width="match_parent" 316 systemui:minSize="@dimen/navigation_bar_deadzone_size" 317 systemui:maxSize="@dimen/navigation_bar_deadzone_size_max" 318 systemui:holdTime="@integer/navigation_bar_deadzone_hold" 319 systemui:decayTime="@integer/navigation_bar_deadzone_decay" 320 systemui:orientation="vertical" 321 android:layout_gravity="top" 322 /> 323 </FrameLayout> 324 325</com.android.systemui.statusbar.phone.NavigationBarView> 326