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="80dp" 53 android:layout_height="match_parent" 54 android:src="@drawable/ic_sysbar_back" 55 systemui:keyCode="4" 56 android:layout_weight="0" 57 systemui:glowBackground="@drawable/ic_sysbar_highlight" 58 android:contentDescription="@string/accessibility_back" 59 /> 60 <View 61 android:layout_width="match_parent" 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="80dp" 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 systemui:glowBackground="@drawable/ic_sysbar_highlight" 74 android:contentDescription="@string/accessibility_home" 75 /> 76 <View 77 android:layout_width="match_parent" 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="80dp" 84 android:layout_height="match_parent" 85 android:src="@drawable/ic_sysbar_recent" 86 android:layout_weight="0" 87 systemui:glowBackground="@drawable/ic_sysbar_highlight" 88 android:contentDescription="@string/accessibility_recent" 89 /> 90 <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/menu" 91 android:layout_width="40dp" 92 android:layout_height="match_parent" 93 android:src="@drawable/ic_sysbar_menu" 94 systemui:keyCode="82" 95 android:layout_weight="0" 96 android:visibility="invisible" 97 android:contentDescription="@string/accessibility_menu" 98 systemui:glowBackground="@drawable/ic_sysbar_highlight" 99 /> 100 </LinearLayout> 101 102 <!-- lights out layout to match exactly --> 103 <LinearLayout 104 android:layout_height="match_parent" 105 android:layout_width="match_parent" 106 android:orientation="horizontal" 107 android:id="@+id/lights_out" 108 android:visibility="gone" 109 > 110 <ImageView 111 android:layout_width="80dp" 112 android:layout_height="match_parent" 113 android:layout_marginLeft="40dp" 114 android:src="@drawable/ic_sysbar_lights_out_dot_small" 115 android:scaleType="center" 116 android:layout_weight="0" 117 /> 118 <View 119 android:layout_width="match_parent" 120 android:layout_height="match_parent" 121 android:layout_weight="1" 122 android:visibility="invisible" 123 /> 124 <ImageView 125 android:layout_width="80dp" 126 android:layout_height="match_parent" 127 android:src="@drawable/ic_sysbar_lights_out_dot_large" 128 android:scaleType="center" 129 android:layout_weight="0" 130 /> 131 <View 132 android:layout_width="match_parent" 133 android:layout_height="match_parent" 134 android:layout_weight="1" 135 android:visibility="invisible" 136 /> 137 <ImageView 138 android:layout_width="80dp" 139 android:layout_marginRight="40dp" 140 android:layout_height="match_parent" 141 android:src="@drawable/ic_sysbar_lights_out_dot_small" 142 android:scaleType="center" 143 android:layout_weight="0" 144 /> 145 </LinearLayout> 146 147 <View android:id="@+id/deadzone" 148 android:layout_height="@dimen/navigation_bar_deadzone_size" 149 android:layout_width="match_parent" 150 android:layout_gravity="top" 151 android:clickable="true" 152 /> 153 </FrameLayout> 154 155 <FrameLayout android:id="@+id/rot90" 156 android:layout_height="match_parent" 157 android:layout_width="match_parent" 158 android:visibility="gone" 159 android:paddingTop="0dp" 160 > 161 162 <LinearLayout 163 android:layout_height="match_parent" 164 android:layout_width="match_parent" 165 android:orientation="vertical" 166 android:clipChildren="false" 167 android:clipToPadding="false" 168 android:id="@+id/nav_buttons" 169 android:animateLayoutChanges="true" 170 > 171 172 <!-- navigation controls --> 173 <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/menu" 174 android:layout_height="40dp" 175 android:layout_width="match_parent" 176 android:src="@drawable/ic_sysbar_menu_land" 177 systemui:keyCode="82" 178 android:layout_weight="0" 179 android:visibility="invisible" 180 android:contentDescription="@string/accessibility_menu" 181 systemui:glowBackground="@drawable/ic_sysbar_highlight_land" 182 /> 183 <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/recent_apps" 184 android:layout_height="80dp" 185 android:layout_width="match_parent" 186 android:src="@drawable/ic_sysbar_recent_land" 187 android:layout_weight="0" 188 android:contentDescription="@string/accessibility_recent" 189 systemui:glowBackground="@drawable/ic_sysbar_highlight_land" 190 /> 191 <View 192 android:layout_height="match_parent" 193 android:layout_width="match_parent" 194 android:layout_weight="1" 195 android:visibility="invisible" 196 /> 197 <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/home" 198 android:layout_height="80dp" 199 android:layout_width="match_parent" 200 android:src="@drawable/ic_sysbar_home_land" 201 systemui:keyCode="3" 202 systemui:keyRepeat="false" 203 android:layout_weight="0" 204 android:contentDescription="@string/accessibility_home" 205 systemui:glowBackground="@drawable/ic_sysbar_highlight_land" 206 /> 207 <View 208 android:layout_height="match_parent" 209 android:layout_width="match_parent" 210 android:layout_weight="1" 211 android:visibility="invisible" 212 /> 213 <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/back" 214 android:layout_height="80dp" 215 android:layout_width="match_parent" 216 android:src="@drawable/ic_sysbar_back_land" 217 systemui:keyCode="4" 218 android:layout_weight="0" 219 android:contentDescription="@string/accessibility_back" 220 systemui:glowBackground="@drawable/ic_sysbar_highlight_land" 221 /> 222 <View 223 android:layout_height="40dp" 224 android:layout_width="match_parent" 225 android:layout_weight="0" 226 android:visibility="invisible" 227 /> 228 </LinearLayout> 229 230 <!-- lights out layout to match exactly --> 231 <LinearLayout 232 android:layout_height="match_parent" 233 android:layout_width="match_parent" 234 android:orientation="vertical" 235 android:id="@+id/lights_out" 236 android:visibility="gone" 237 > 238 <ImageView 239 android:layout_height="80dp" 240 android:layout_marginTop="40dp" 241 android:layout_width="match_parent" 242 android:src="@drawable/ic_sysbar_lights_out_dot_small" 243 android:scaleType="center" 244 android:layout_weight="0" 245 /> 246 <View 247 android:layout_height="match_parent" 248 android:layout_width="match_parent" 249 android:layout_weight="1" 250 android:visibility="invisible" 251 /> 252 <ImageView 253 android:layout_height="80dp" 254 android:layout_width="match_parent" 255 android:src="@drawable/ic_sysbar_lights_out_dot_large" 256 android:scaleType="center" 257 android:layout_weight="0" 258 /> 259 <View 260 android:layout_height="match_parent" 261 android:layout_width="match_parent" 262 android:layout_weight="1" 263 android:visibility="invisible" 264 /> 265 <ImageView 266 android:layout_height="80dp" 267 android:layout_marginBottom="40dp" 268 android:layout_width="match_parent" 269 android:src="@drawable/ic_sysbar_lights_out_dot_small" 270 android:scaleType="center" 271 android:layout_weight="0" 272 /> 273 </LinearLayout> 274 275 <View android:id="@+id/deadzone" 276 android:layout_width="@dimen/navigation_bar_deadzone_size" 277 android:layout_height="match_parent" 278 android:layout_gravity="left" 279 android:clickable="true" 280 /> 281 </FrameLayout> 282 283 <!-- not used --> 284 <View android:id="@+id/rot270" 285 android:layout_height="match_parent" 286 android:layout_width="match_parent" 287 android:visibility="gone" 288 /> 289 290 </com.android.systemui.statusbar.phone.NavigationBarView> 291