• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3**
4** Copyright 2012, The Android Open Source Project
5**
6** Licensed under the Apache License, Version 2.0 (the "License");
7** you may not use this file except in compliance with the License.
8** You may obtain a copy of the License at
9**
10**     http://www.apache.org/licenses/LICENSE-2.0
11**
12** Unless required by applicable law or agreed to in writing, software
13** distributed under the License is distributed on an "AS IS" BASIS,
14** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15** See the License for the specific language governing permissions and
16** limitations under the License.
17-->
18
19<!--  navigation bar for sw600dp (small tablets) -->
20<com.android.systemui.statusbar.phone.NavigationBarView
21    xmlns:android="http://schemas.android.com/apk/res/android"
22    xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui"
23    android:layout_height="match_parent"
24    android:layout_width="match_parent"
25    android:background="@drawable/system_bar_background"
26    >
27
28    <FrameLayout android:id="@+id/rot0"
29        android:layout_height="match_parent"
30        android:layout_width="match_parent"
31        >
32
33        <LinearLayout
34            android:layout_height="match_parent"
35            android:layout_width="match_parent"
36            android:orientation="horizontal"
37            android:clipChildren="false"
38            android:clipToPadding="false"
39            android:id="@+id/nav_buttons"
40            android:animateLayoutChanges="true"
41            >
42
43            <!-- navigation controls -->
44            <View
45                android:layout_width="@dimen/navigation_extra_key_width"
46                android:layout_height="match_parent"
47                android:layout_weight="0"
48                android:layout_marginStart="2dp"
49                android:visibility="invisible"
50                />
51            <Space
52                android:layout_width="match_parent"
53                android:layout_height="match_parent"
54                android:layout_weight="1"
55                />
56            <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/back"
57                android:layout_width="128dp" android:paddingStart="25dp" android:paddingEnd="25dp"
58                android:layout_height="match_parent"
59                android:src="@drawable/ic_sysbar_back"
60                systemui:keyCode="4"
61                android:layout_weight="0"
62                android:contentDescription="@string/accessibility_back"
63                />
64            <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/home"
65                android:layout_width="128dp" android:paddingStart="25dp" android:paddingEnd="25dp"
66                android:layout_height="match_parent"
67                android:src="@drawable/ic_sysbar_home"
68                systemui:keyCode="3"
69                systemui:keyRepeat="true"
70                android:layout_weight="0"
71                android:contentDescription="@string/accessibility_home"
72                />
73            <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/recent_apps"
74                android:layout_width="128dp" android:paddingStart="25dp" android:paddingEnd="25dp"
75                android:layout_height="match_parent"
76                android:src="@drawable/ic_sysbar_recent"
77                android:layout_weight="0"
78                android:contentDescription="@string/accessibility_recent"
79                />
80            <Space
81                android:layout_width="match_parent"
82                android:layout_height="match_parent"
83                android:layout_weight="1"
84                />
85            <FrameLayout
86                android:layout_width="@dimen/navigation_extra_key_width"
87                android:layout_height="match_parent"
88                android:layout_weight="0"
89                android:layout_marginEnd="2dp" >
90                <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/menu"
91                    android:layout_width="@dimen/navigation_extra_key_width"
92                    android:layout_height="match_parent"
93                    android:src="@drawable/ic_sysbar_menu"
94                    android:layout_marginEnd="2dp"
95                    systemui:keyCode="82"
96                    android:visibility="invisible"
97                    android:contentDescription="@string/accessibility_menu"
98                    />
99                <com.android.systemui.statusbar.policy.KeyButtonView
100                    android:id="@+id/ime_switcher"
101                    android:layout_width="@dimen/navigation_extra_key_width"
102                    android:layout_height="match_parent"
103                    android:layout_marginEnd="2dp"
104                    android:scaleType="centerInside"
105                    android:src="@drawable/ic_ime_switcher_default"
106                    android:visibility="invisible"
107                    android:contentDescription="@string/accessibility_ime_switch_button" />
108            </FrameLayout>
109        </LinearLayout>
110
111        <!-- lights out layout to match exactly -->
112        <LinearLayout
113            android:layout_height="match_parent"
114            android:layout_width="match_parent"
115            android:orientation="horizontal"
116            android:id="@+id/lights_out"
117            android:visibility="gone"
118            >
119            <Space
120                android:layout_width="match_parent"
121                android:layout_height="match_parent"
122                android:layout_weight="1"
123                />
124            <ImageView
125                android:layout_width="128dp" android:paddingStart="25dp" android:paddingEnd="25dp"
126                android:layout_height="match_parent"
127                android:layout_marginStart="40dp"
128                android:src="@drawable/ic_sysbar_lights_out_dot_small"
129                android:scaleType="center"
130                android:layout_weight="0"
131                />
132            <ImageView
133                android:layout_width="128dp" android:paddingStart="25dp" android:paddingEnd="25dp"
134                android:layout_height="match_parent"
135                android:src="@drawable/ic_sysbar_lights_out_dot_large"
136                android:scaleType="center"
137                android:layout_weight="0"
138                />
139            <ImageView
140                android:layout_width="128dp" android:paddingStart="25dp" android:paddingEnd="25dp"
141                android:layout_marginEnd="40dp"
142                android:layout_height="match_parent"
143                android:src="@drawable/ic_sysbar_lights_out_dot_small"
144                android:scaleType="center"
145                android:layout_weight="0"
146                />
147            <Space
148                android:layout_width="match_parent"
149                android:layout_height="match_parent"
150                android:layout_weight="1"
151                />
152        </LinearLayout>
153
154        <com.android.systemui.statusbar.policy.DeadZone
155            android:id="@+id/deadzone"
156            android:layout_height="match_parent"
157            android:layout_width="match_parent"
158            systemui:minSize="@dimen/navigation_bar_deadzone_size"
159            systemui:maxSize="@dimen/navigation_bar_deadzone_size_max"
160            systemui:holdTime="@integer/navigation_bar_deadzone_hold"
161            systemui:decayTime="@integer/navigation_bar_deadzone_decay"
162            systemui:orientation="horizontal"
163            android:layout_gravity="top"
164            />
165    </FrameLayout>
166
167    <FrameLayout android:id="@+id/rot90"
168        android:layout_height="match_parent"
169        android:layout_width="match_parent"
170        android:visibility="gone"
171        android:paddingTop="0dp"
172        >
173
174        <LinearLayout
175            android:layout_height="match_parent"
176            android:layout_width="match_parent"
177            android:orientation="horizontal"
178            android:clipChildren="false"
179            android:clipToPadding="false"
180            android:id="@+id/nav_buttons"
181            android:animateLayoutChanges="true"
182            >
183
184            <!-- navigation controls -->
185            <View
186                android:layout_width="@dimen/navigation_extra_key_width"
187                android:layout_height="match_parent"
188                android:layout_weight="0"
189                android:layout_marginStart="2dp"
190                android:visibility="invisible"
191                />
192            <Space
193                android:layout_width="match_parent"
194                android:layout_height="match_parent"
195                android:layout_weight="1"
196                />
197            <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/back"
198                android:layout_width="162dp" android:paddingStart="42dp" android:paddingEnd="42dp"
199                android:layout_height="match_parent"
200                android:src="@drawable/ic_sysbar_back"
201                systemui:keyCode="4"
202                android:layout_weight="0"
203                android:contentDescription="@string/accessibility_back"
204                />
205            <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/home"
206                android:layout_width="162dp" android:paddingStart="42dp" android:paddingEnd="42dp"
207                android:layout_height="match_parent"
208                android:src="@drawable/ic_sysbar_home"
209                systemui:keyCode="3"
210                systemui:keyRepeat="true"
211                android:layout_weight="0"
212                android:contentDescription="@string/accessibility_home"
213                />
214            <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/recent_apps"
215                android:layout_width="162dp" android:paddingStart="42dp" android:paddingEnd="42dp"
216                android:layout_height="match_parent"
217                android:src="@drawable/ic_sysbar_recent"
218                android:layout_weight="0"
219                android:contentDescription="@string/accessibility_recent"
220                />
221            <Space
222                android:layout_width="match_parent"
223                android:layout_height="match_parent"
224                android:layout_weight="1"
225                />
226            <FrameLayout
227                android:layout_width="@dimen/navigation_extra_key_width"
228                android:layout_height="match_parent"
229                android:layout_marginEnd="2dp"
230                android:layout_weight="0" >
231                <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/menu"
232                    android:layout_width="@dimen/navigation_extra_key_width"
233                    android:layout_height="match_parent"
234                    android:layout_marginEnd="2dp"
235                    android:src="@drawable/ic_sysbar_menu"
236                    systemui:keyCode="82"
237                    android:visibility="invisible"
238                    android:contentDescription="@string/accessibility_menu" />
239                <com.android.systemui.statusbar.policy.KeyButtonView
240                    android:id="@+id/ime_switcher"
241                    android:layout_width="@dimen/navigation_extra_key_width"
242                    android:layout_height="match_parent"
243                    android:layout_marginEnd="2dp"
244                    android:src="@drawable/ic_ime_switcher_default"
245                    android:visibility="invisible"
246                    android:contentDescription="@string/accessibility_ime_switch_button"
247                    android:scaleType="centerInside" />
248            </FrameLayout>
249        </LinearLayout>
250
251        <!-- lights out layout to match exactly -->
252        <LinearLayout
253            android:layout_height="match_parent"
254            android:layout_width="match_parent"
255            android:orientation="horizontal"
256            android:id="@+id/lights_out"
257            android:visibility="gone"
258            >
259            <Space
260                android:layout_width="match_parent"
261                android:layout_height="match_parent"
262                android:layout_weight="1"
263                />
264            <ImageView
265                android:layout_width="162dp" android:paddingStart="42dp" android:paddingEnd="42dp"
266                android:layout_height="match_parent"
267                android:layout_marginStart="40dp"
268                android:src="@drawable/ic_sysbar_lights_out_dot_small"
269                android:scaleType="center"
270                android:layout_weight="0"
271                />
272            <ImageView
273                android:layout_width="162dp" android:paddingStart="42dp" android:paddingEnd="42dp"
274                android:layout_height="match_parent"
275                android:src="@drawable/ic_sysbar_lights_out_dot_large"
276                android:scaleType="center"
277                android:layout_weight="0"
278                />
279            <ImageView
280                android:layout_width="162dp" android:paddingStart="42dp" android:paddingEnd="42dp"
281                android:layout_marginEnd="40dp"
282                android:layout_height="match_parent"
283                android:src="@drawable/ic_sysbar_lights_out_dot_small"
284                android:scaleType="center"
285                android:layout_weight="0"
286                />
287            <Space
288                android:layout_width="match_parent"
289                android:layout_height="match_parent"
290                android:layout_weight="1"
291                />
292        </LinearLayout>
293
294        <com.android.systemui.statusbar.policy.DeadZone
295            android:id="@+id/deadzone"
296            android:layout_height="match_parent"
297            android:layout_width="match_parent"
298            systemui:minSize="@dimen/navigation_bar_deadzone_size"
299            systemui:maxSize="@dimen/navigation_bar_deadzone_size_max"
300            systemui:holdTime="@integer/navigation_bar_deadzone_hold"
301            systemui:decayTime="@integer/navigation_bar_deadzone_decay"
302            systemui:orientation="vertical"
303            android:layout_gravity="top"
304            />
305    </FrameLayout>
306</com.android.systemui.statusbar.phone.NavigationBarView>
307