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