navigation_bar.xml revision 5298582717494098fcdf115d832c8e871340d0b5
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 > 27 28 <FrameLayout android:id="@+id/rot0" 29 android:layout_height="match_parent" 30 android:layout_width="match_parent" 31 android:background="#FF000000" 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 > 41 42 <!-- navigation controls --> 43 <View 44 android:layout_width="40dp" 45 android:layout_height="match_parent" 46 android:layout_weight="0" 47 android:visibility="invisible" 48 /> 49 <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/back" 50 android:layout_width="80dp" 51 android:layout_height="match_parent" 52 android:src="@drawable/ic_sysbar_back" 53 systemui:keyCode="4" 54 android:layout_weight="0" 55 systemui:glowBackground="@drawable/ic_sysbar_highlight" 56 android:contentDescription="@string/accessibility_back" 57 /> 58 <View 59 android:layout_width="match_parent" 60 android:layout_height="match_parent" 61 android:layout_weight="1" 62 android:visibility="invisible" 63 /> 64 <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/home" 65 android:layout_width="80dp" 66 android:layout_height="match_parent" 67 android:src="@drawable/ic_sysbar_home" 68 systemui:keyCode="3" 69 android:layout_weight="0" 70 systemui:glowBackground="@drawable/ic_sysbar_highlight" 71 android:contentDescription="@string/accessibility_home" 72 /> 73 <View 74 android:layout_width="match_parent" 75 android:layout_height="match_parent" 76 android:layout_weight="1" 77 android:visibility="invisible" 78 /> 79 <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/recent_apps" 80 android:layout_width="80dp" 81 android:layout_height="match_parent" 82 android:src="@drawable/ic_sysbar_recent" 83 android:layout_weight="0" 84 systemui:glowBackground="@drawable/ic_sysbar_highlight" 85 android:contentDescription="@string/accessibility_recent" 86 /> 87 <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/menu" 88 android:layout_width="40dp" 89 android:layout_height="match_parent" 90 android:src="@drawable/ic_sysbar_menu" 91 systemui:keyCode="82" 92 android:layout_weight="0" 93 android:visibility="invisible" 94 android:contentDescription="@string/accessibility_menu" 95 systemui:glowBackground="@drawable/ic_sysbar_highlight" 96 /> 97 </LinearLayout> 98 99 <View android:id="@+id/deadzone" 100 android:layout_height="@dimen/navigation_bar_deadzone_size" 101 android:layout_width="match_parent" 102 android:layout_gravity="top" 103 android:clickable="true" 104 /> 105 </FrameLayout> 106 107 <FrameLayout android:id="@+id/rot90" 108 android:layout_height="match_parent" 109 android:layout_width="match_parent" 110 android:background="#FF000000" 111 android:visibility="gone" 112 android:paddingTop="24dp" 113 > 114 115 <LinearLayout 116 android:layout_height="match_parent" 117 android:layout_width="match_parent" 118 android:orientation="vertical" 119 android:clipChildren="false" 120 android:clipToPadding="false" 121 > 122 123 <!-- navigation controls --> 124 <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/menu" 125 android:layout_height="40dp" 126 android:layout_width="match_parent" 127 android:src="@drawable/ic_sysbar_menu_land" 128 systemui:keyCode="82" 129 android:layout_weight="0" 130 android:visibility="invisible" 131 /> 132 <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/recent_apps" 133 android:layout_height="80dp" 134 android:layout_width="match_parent" 135 android:src="@drawable/ic_sysbar_recent_land" 136 android:layout_weight="0" 137 android:contentDescription="@string/accessibility_recent" 138 systemui:glowBackground="@drawable/ic_sysbar_highlight_land" 139 /> 140 <View 141 android:layout_height="match_parent" 142 android:layout_width="match_parent" 143 android:layout_weight="1" 144 android:visibility="invisible" 145 /> 146 <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/home" 147 android:layout_height="80dp" 148 android:layout_width="match_parent" 149 android:src="@drawable/ic_sysbar_home_land" 150 systemui:keyCode="3" 151 android:layout_weight="0" 152 android:contentDescription="@string/accessibility_home" 153 systemui:glowBackground="@drawable/ic_sysbar_highlight_land" 154 /> 155 <View 156 android:layout_height="match_parent" 157 android:layout_width="match_parent" 158 android:layout_weight="1" 159 android:visibility="invisible" 160 /> 161 <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/back" 162 android:layout_height="80dp" 163 android:layout_width="match_parent" 164 android:src="@drawable/ic_sysbar_back_land" 165 systemui:keyCode="4" 166 android:layout_weight="0" 167 android:contentDescription="@string/accessibility_back" 168 systemui:glowBackground="@drawable/ic_sysbar_highlight_land" 169 /> 170 <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/menu" 171 android:layout_height="40dp" 172 android:layout_width="match_parent" 173 android:src="@drawable/ic_sysbar_menu_land" 174 systemui:keyCode="82" 175 android:layout_weight="0" 176 android:visibility="invisible" 177 android:contentDescription="@string/accessibility_menu" 178 systemui:glowBackground="@drawable/ic_sysbar_highlight_land" 179 /> 180 </LinearLayout> 181 182 <View android:id="@+id/deadzone" 183 android:layout_width="@dimen/navigation_bar_deadzone_size" 184 android:layout_height="match_parent" 185 android:layout_gravity="left" 186 android:clickable="true" 187 /> 188 </FrameLayout> 189 190 <!-- not used --> 191 <View android:id="@+id/rot270" 192 android:layout_height="match_parent" 193 android:layout_width="match_parent" 194 android:visibility="gone" 195 /> 196 197</com.android.systemui.statusbar.phone.NavigationBarView> 198