• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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="@drawable/system_bar_background"
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_marginStart="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_marginEnd="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        <FrameLayout
149            android:layout_width="match_parent"
150            android:layout_height="match_parent">
151
152            <com.android.systemui.statusbar.policy.KeyButtonView
153                android:layout_width="80dp"
154                android:id="@+id/search_light"
155                android:layout_height="match_parent"
156                android:layout_gravity="center"
157                android:src="@drawable/search_light"
158                android:scaleType="center"
159                android:visibility="gone"
160                android:contentDescription="@string/accessibility_search_light"
161                />
162
163            <com.android.systemui.statusbar.policy.KeyButtonView
164                android:id="@+id/camera_button"
165                android:layout_height="match_parent"
166                android:layout_width="80dp"
167                android:layout_gravity="center_vertical|right"
168                android:src="@drawable/ic_sysbar_camera"
169                android:scaleType="center"
170                android:visibility="gone"
171                android:contentDescription="@string/accessibility_camera_button"
172                />
173        </FrameLayout>
174
175        <com.android.systemui.statusbar.policy.DeadZone
176            android:id="@+id/deadzone"
177            android:layout_height="match_parent"
178            android:layout_width="match_parent"
179            systemui:minSize="@dimen/navigation_bar_deadzone_size"
180            systemui:maxSize="@dimen/navigation_bar_deadzone_size_max"
181            systemui:holdTime="@integer/navigation_bar_deadzone_hold"
182            systemui:decayTime="@integer/navigation_bar_deadzone_decay"
183            systemui:orientation="horizontal"
184            android:layout_gravity="top"
185            />
186    </FrameLayout>
187
188    <FrameLayout android:id="@+id/rot90"
189        android:layout_height="match_parent"
190        android:layout_width="match_parent"
191        android:visibility="gone"
192        android:paddingTop="0dp"
193        >
194
195        <LinearLayout
196            android:layout_height="match_parent"
197            android:layout_width="match_parent"
198            android:orientation="vertical"
199            android:clipChildren="false"
200            android:clipToPadding="false"
201            android:id="@+id/nav_buttons"
202            android:animateLayoutChanges="true"
203            >
204
205            <!-- navigation controls -->
206            <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/menu"
207                android:layout_height="40dp"
208                android:layout_width="match_parent"
209                android:src="@drawable/ic_sysbar_menu_land"
210                systemui:keyCode="82"
211                android:layout_weight="0"
212                android:visibility="invisible"
213                android:contentDescription="@string/accessibility_menu"
214                systemui:glowBackground="@drawable/ic_sysbar_highlight_land"
215                />
216            <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/recent_apps"
217                android:layout_height="80dp"
218                android:layout_width="match_parent"
219                android:src="@drawable/ic_sysbar_recent_land"
220                android:layout_weight="0"
221                android:contentDescription="@string/accessibility_recent"
222                systemui:glowBackground="@drawable/ic_sysbar_highlight_land"
223                />
224            <View
225                android:layout_height="match_parent"
226                android:layout_width="match_parent"
227                android:layout_weight="1"
228                android:visibility="invisible"
229                />
230            <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/home"
231                android:layout_height="80dp"
232                android:layout_width="match_parent"
233                android:src="@drawable/ic_sysbar_home_land"
234                systemui:keyCode="3"
235                systemui:keyRepeat="false"
236                android:layout_weight="0"
237                android:contentDescription="@string/accessibility_home"
238                systemui:glowBackground="@drawable/ic_sysbar_highlight_land"
239                />
240            <View
241                android:layout_height="match_parent"
242                android:layout_width="match_parent"
243                android:layout_weight="1"
244                android:visibility="invisible"
245                />
246            <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/back"
247                android:layout_height="80dp"
248                android:layout_width="match_parent"
249                android:src="@drawable/ic_sysbar_back_land"
250                android:scaleType="center"
251                systemui:keyCode="4"
252                android:layout_weight="0"
253                android:contentDescription="@string/accessibility_back"
254                systemui:glowBackground="@drawable/ic_sysbar_highlight_land"
255                />
256            <View
257                android:layout_height="40dp"
258                android:layout_width="match_parent"
259                android:layout_weight="0"
260                android:visibility="invisible"
261                />
262        </LinearLayout>
263
264        <!-- lights out layout to match exactly -->
265        <LinearLayout
266            android:layout_height="match_parent"
267            android:layout_width="match_parent"
268            android:orientation="vertical"
269            android:id="@+id/lights_out"
270            android:visibility="gone"
271            >
272            <ImageView
273                android:layout_height="80dp"
274                android:layout_marginTop="40dp"
275                android:layout_width="match_parent"
276                android:src="@drawable/ic_sysbar_lights_out_dot_small"
277                android:scaleType="center"
278                android:layout_weight="0"
279                />
280            <View
281                android:layout_height="match_parent"
282                android:layout_width="match_parent"
283                android:layout_weight="1"
284                android:visibility="invisible"
285                />
286            <ImageView
287                android:layout_height="80dp"
288                android:layout_width="match_parent"
289                android:src="@drawable/ic_sysbar_lights_out_dot_large"
290                android:scaleType="center"
291                android:layout_weight="0"
292                />
293            <View
294                android:layout_height="match_parent"
295                android:layout_width="match_parent"
296                android:layout_weight="1"
297                android:visibility="invisible"
298                />
299            <ImageView
300                android:layout_height="80dp"
301                android:layout_marginBottom="40dp"
302                android:layout_width="match_parent"
303                android:src="@drawable/ic_sysbar_lights_out_dot_small"
304                android:scaleType="center"
305                android:layout_weight="0"
306                />
307        </LinearLayout>
308
309        <com.android.systemui.statusbar.policy.KeyButtonView
310            android:id="@+id/search_light"
311            android:layout_height="80dp"
312            android:layout_width="match_parent"
313            android:layout_gravity="center_vertical"
314            android:src="@drawable/search_light_land"
315            android:scaleType="center"
316            android:visibility="gone"
317            android:contentDescription="@string/accessibility_search_light"
318            />
319
320        <!-- No camera button in landscape mode -->
321
322        <com.android.systemui.statusbar.policy.DeadZone
323            android:id="@+id/deadzone"
324            android:layout_height="match_parent"
325            android:layout_width="match_parent"
326            systemui:minSize="@dimen/navigation_bar_deadzone_size"
327            systemui:maxSize="@dimen/navigation_bar_deadzone_size_max"
328            systemui:holdTime="@integer/navigation_bar_deadzone_hold"
329            systemui:decayTime="@integer/navigation_bar_deadzone_decay"
330            systemui:orientation="vertical"
331            android:layout_gravity="top"
332            />
333    </FrameLayout>
334
335    <!-- not used -->
336    <View android:id="@+id/rot270"
337        android:layout_height="match_parent"
338        android:layout_width="match_parent"
339        android:visibility="gone"
340        />
341
342</com.android.systemui.statusbar.phone.NavigationBarView>
343