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="#FF000000" 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_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 148 <com.android.systemui.statusbar.policy.DeadZone 149 android:id="@+id/deadzone" 150 android:layout_height="@dimen/navigation_bar_deadzone_size" 151 android:layout_width="match_parent" 152 android:layout_gravity="top" 153 /> 154 </FrameLayout> 155 156 <FrameLayout android:id="@+id/rot90" 157 android:layout_height="match_parent" 158 android:layout_width="match_parent" 159 android:visibility="gone" 160 android:paddingTop="0dp" 161 > 162 163 <LinearLayout 164 android:layout_height="match_parent" 165 android:layout_width="match_parent" 166 android:orientation="vertical" 167 android:clipChildren="false" 168 android:clipToPadding="false" 169 android:id="@+id/nav_buttons" 170 android:animateLayoutChanges="true" 171 > 172 173 <!-- navigation controls --> 174 <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/menu" 175 android:layout_height="40dp" 176 android:layout_width="match_parent" 177 android:src="@drawable/ic_sysbar_menu_land" 178 systemui:keyCode="82" 179 android:layout_weight="0" 180 android:visibility="invisible" 181 android:contentDescription="@string/accessibility_menu" 182 systemui:glowBackground="@drawable/ic_sysbar_highlight_land" 183 /> 184 <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/recent_apps" 185 android:layout_height="80dp" 186 android:layout_width="match_parent" 187 android:src="@drawable/ic_sysbar_recent_land" 188 android:layout_weight="0" 189 android:contentDescription="@string/accessibility_recent" 190 systemui:glowBackground="@drawable/ic_sysbar_highlight_land" 191 /> 192 <View 193 android:layout_height="match_parent" 194 android:layout_width="match_parent" 195 android:layout_weight="1" 196 android:visibility="invisible" 197 /> 198 <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/home" 199 android:layout_height="80dp" 200 android:layout_width="match_parent" 201 android:src="@drawable/ic_sysbar_home_land" 202 systemui:keyCode="3" 203 systemui:keyRepeat="false" 204 android:layout_weight="0" 205 android:contentDescription="@string/accessibility_home" 206 systemui:glowBackground="@drawable/ic_sysbar_highlight_land" 207 /> 208 <View 209 android:layout_height="match_parent" 210 android:layout_width="match_parent" 211 android:layout_weight="1" 212 android:visibility="invisible" 213 /> 214 <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/back" 215 android:layout_height="80dp" 216 android:layout_width="match_parent" 217 android:src="@drawable/ic_sysbar_back_land" 218 android:scaleType="center" 219 systemui:keyCode="4" 220 android:layout_weight="0" 221 android:contentDescription="@string/accessibility_back" 222 systemui:glowBackground="@drawable/ic_sysbar_highlight_land" 223 /> 224 <View 225 android:layout_height="40dp" 226 android:layout_width="match_parent" 227 android:layout_weight="0" 228 android:visibility="invisible" 229 /> 230 </LinearLayout> 231 232 <!-- lights out layout to match exactly --> 233 <LinearLayout 234 android:layout_height="match_parent" 235 android:layout_width="match_parent" 236 android:orientation="vertical" 237 android:id="@+id/lights_out" 238 android:visibility="gone" 239 > 240 <ImageView 241 android:layout_height="80dp" 242 android:layout_marginTop="40dp" 243 android:layout_width="match_parent" 244 android:src="@drawable/ic_sysbar_lights_out_dot_small" 245 android:scaleType="center" 246 android:layout_weight="0" 247 /> 248 <View 249 android:layout_height="match_parent" 250 android:layout_width="match_parent" 251 android:layout_weight="1" 252 android:visibility="invisible" 253 /> 254 <ImageView 255 android:layout_height="80dp" 256 android:layout_width="match_parent" 257 android:src="@drawable/ic_sysbar_lights_out_dot_large" 258 android:scaleType="center" 259 android:layout_weight="0" 260 /> 261 <View 262 android:layout_height="match_parent" 263 android:layout_width="match_parent" 264 android:layout_weight="1" 265 android:visibility="invisible" 266 /> 267 <ImageView 268 android:layout_height="80dp" 269 android:layout_marginBottom="40dp" 270 android:layout_width="match_parent" 271 android:src="@drawable/ic_sysbar_lights_out_dot_small" 272 android:scaleType="center" 273 android:layout_weight="0" 274 /> 275 </LinearLayout> 276 277 <com.android.systemui.statusbar.policy.DeadZone 278 android:id="@+id/deadzone" 279 android:layout_width="@dimen/navigation_bar_deadzone_size" 280 android:layout_height="match_parent" 281 android:layout_gravity="left" 282 /> 283 </FrameLayout> 284 285 <!-- not used --> 286 <View android:id="@+id/rot270" 287 android:layout_height="match_parent" 288 android:layout_width="match_parent" 289 android:visibility="gone" 290 /> 291 292 </com.android.systemui.statusbar.phone.NavigationBarView> 293