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