blob: 590132f2ff33ff4c52dbe1f6d4a556a35fd9e5b2 [file] [log] [blame]
Joe Onorato808182d2010-07-09 18:52:06 -04001<?xml version="1.0" encoding="utf-8"?>
2<!--
Joe Onoratoef1e7762010-09-17 18:38:38 -04003 * Copyright (C) 2010 The Android Open Source Project
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
Joe Onorato808182d2010-07-09 18:52:06 -040016-->
17
18<!-- android:background="@drawable/status_bar_closed_default_background" -->
Joe Onoratob62ac122010-09-20 16:16:32 -040019<com.android.systemui.statusbar.tablet.TabletStatusBarView
Joe Onorato808182d2010-07-09 18:52:06 -040020 xmlns:android="http://schemas.android.com/apk/res/android"
21 xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui"
22 android:background="@drawable/status_bar_background"
Joe Onorato808182d2010-07-09 18:52:06 -040023 >
Daniel Sandlerce70d912010-09-02 11:59:41 -040024 <RelativeLayout
25 android:id="@+id/bar_contents"
26 android:layout_width="match_parent"
27 android:layout_height="match_parent"
28 >
Joe Onorato808182d2010-07-09 18:52:06 -040029
Joe Onorato55d2d762010-09-26 13:02:01 -070030 <ImageView
Daniel Sandler271ea122010-10-22 14:06:10 -040031 android:id="@+id/notificationTrigger"
Joe Onorato55d2d762010-09-26 13:02:01 -070032 android:layout_width="wrap_content"
Daniel Sandler271ea122010-10-22 14:06:10 -040033 android:layout_height="match_parent"
34 android:layout_alignParentRight="true"
35 android:layout_marginLeft="6dip"
36 android:src="@drawable/ic_sysbar_noti_none"
Daniel Sandlera84a69f2010-10-08 10:39:46 -040037 android:background="@drawable/ic_sysbar_icon_bg"
Daniel Sandler271ea122010-10-22 14:06:10 -040038 android:gravity="center"
Joe Onorato55d2d762010-09-26 13:02:01 -070039 />
40
41 <LinearLayout
42 android:id="@+id/notificationButtons"
43 android:layout_width="wrap_content"
44 android:layout_height="match_parent"
Daniel Sandler271ea122010-10-22 14:06:10 -040045 android:layout_toLeftOf="@+id/notificationTrigger"
Joe Onorato55d2d762010-09-26 13:02:01 -070046 android:gravity="center_vertical"
47 android:orientation="horizontal"
48 android:visibility="gone"
49 >
50
Joe Onorato55d2d762010-09-26 13:02:01 -070051 <TextView android:id="@+id/clear_all_button"
52 style="?android:attr/textAppearance"
53 android:layout_width="wrap_content"
54 android:layout_height="wrap_content"
55 android:layout_gravity="right|center_vertical"
56 android:layout_marginTop="2dip"
57 android:layout_marginBottom="1dip"
58 android:layout_marginRight="10dip"
59 android:padding="6dip"
60 android:textSize="14sp"
61 android:text="@string/status_bar_clear_all_button"
62 />
63
Joe Onoratoea70e632010-09-27 17:59:37 -070064 <TextView android:id="@+id/do_not_disturb"
65 style="?android:attr/textAppearance"
66 android:layout_width="wrap_content"
67 android:layout_height="wrap_content"
68 android:layout_gravity="right|center_vertical"
69 android:layout_marginTop="2dip"
70 android:layout_marginBottom="1dip"
71 android:layout_marginRight="10dip"
72 android:padding="6dip"
73 android:textSize="14sp"
74 android:text="@string/status_bar_do_not_disturb_button"
75 />
76
Joe Onorato55d2d762010-09-26 13:02:01 -070077 </LinearLayout>
78
Joe Onorato808182d2010-07-09 18:52:06 -040079 <com.android.systemui.statusbar.tablet.NotificationIconArea
80 android:id="@+id/notificationIcons"
81 android:layout_width="wrap_content"
82 android:layout_height="match_parent"
Daniel Sandler271ea122010-10-22 14:06:10 -040083 android:layout_toLeftOf="@+id/notificationTrigger"
Joe Onorato808182d2010-07-09 18:52:06 -040084 android:gravity="center_vertical"
85 android:orientation="horizontal"
Daniel Sandler3a04ef02010-07-15 16:35:29 -040086 >
Joe Onoratoea70e632010-09-27 17:59:37 -070087 <com.android.systemui.statusbar.tablet.InputMethodButton
88 android:id="@+id/imeButton"
Daniel Sandler3a04ef02010-07-15 16:35:29 -040089 android:layout_width="wrap_content"
Joe Onoratoea70e632010-09-27 17:59:37 -070090 android:layout_height="match_parent"
Daniel Sandler9120d552010-07-23 09:11:14 -040091 android:layout_marginLeft="8dip"
Joe Onoratoea70e632010-09-27 17:59:37 -070092 android:src="@drawable/ic_sysbar_ime_default"
93 android:background="@drawable/ic_sysbar_icon_bg"
94 android:visibility="invisible"
Daniel Sandler3a04ef02010-07-15 16:35:29 -040095 />
96 <view
Joe Onoratoea70e632010-09-27 17:59:37 -070097 class="com.android.systemui.statusbar.tablet.NotificationIconArea$IconLayout"
98 android:id="@+id/icons"
Daniel Sandlera84a69f2010-10-08 10:39:46 -040099 android:layout_width="wrap_content"
Joe Onoratoea70e632010-09-27 17:59:37 -0700100 android:layout_height="@*android:dimen/status_bar_icon_size"
Daniel Sandlera84a69f2010-10-08 10:39:46 -0400101 android:layout_marginLeft="8dip"
Daniel Sandlera84a69f2010-10-08 10:39:46 -0400102 />
Daniel Sandler9120d552010-07-23 09:11:14 -0400103 </com.android.systemui.statusbar.tablet.NotificationIconArea>
104
Daniel Sandlera84a69f2010-10-08 10:39:46 -0400105
Joe Onoratoef1e7762010-09-17 18:38:38 -0400106 <FrameLayout
107 android:id="@+id/ticker"
108 android:layout_width="wrap_content"
Daniel Sandler9120d552010-07-23 09:11:14 -0400109 android:layout_height="match_parent"
Joe Onoratoea70e632010-09-27 17:59:37 -0700110 android:layout_alignParentRight="true"
111 android:layout_toRightOf="@+id/systemInfo"
Daniel Sandlerdfa08db2010-08-05 16:18:42 -0400112 android:paddingLeft="6dip"
Joe Onoratoef1e7762010-09-17 18:38:38 -0400113 android:gravity="center_vertical"
114 android:animateLayoutChanges="true"
115 />
Daniel Sandlerdfa08db2010-08-05 16:18:42 -0400116
117 <include layout="@layout/status_bar_center"
Daniel Sandlerd39e3882010-08-31 14:16:13 -0400118 android:layout_width="256dip"
Daniel Sandler764b4da2010-08-24 16:24:35 -0400119 android:layout_height="match_parent"
Daniel Sandlerdfa08db2010-08-05 16:18:42 -0400120 android:layout_centerInParent="true"
121 />
Joe Onorato808182d2010-07-09 18:52:06 -0400122
Joe Onorato091e1b82010-09-26 18:04:44 -0700123 <LinearLayout
124 android:id="@+id/navigationArea"
Daniel Sandler804eb852010-08-31 15:43:50 -0400125 android:layout_width="wrap_content"
126 android:layout_height="match_parent"
Joe Onoratoea70e632010-09-27 17:59:37 -0700127 android:layout_alignParentLeft="true"
Joe Onorato091e1b82010-09-26 18:04:44 -0700128 android:orientation="horizontal"
129 >
Joe Onoratoea70e632010-09-27 17:59:37 -0700130
131 <com.android.systemui.statusbar.KeyButtonView android:id="@+id/back"
132 android:layout_width="wrap_content"
133 android:layout_height="match_parent"
Joe Onoratobd5dba32010-10-24 14:28:21 -0700134 android:paddingLeft="15dip"
135 android:paddingRight="15dip"
Joe Onorato7e750b12010-11-02 00:14:33 -0700136 android:src="@drawable/ic_sysbar_back"
Joe Onoratoea70e632010-09-27 17:59:37 -0700137 android:background="@drawable/ic_sysbar_icon_bg"
138 systemui:keyCode="4"
139 />
140 <com.android.systemui.statusbar.KeyButtonView android:id="@+id/home"
141 android:layout_width="wrap_content"
142 android:layout_height="match_parent"
Joe Onoratobd5dba32010-10-24 14:28:21 -0700143 android:paddingLeft="15dip"
144 android:paddingRight="15dip"
Joe Onoratoea70e632010-09-27 17:59:37 -0700145 android:src="@drawable/ic_sysbar_home"
146 android:background="@drawable/ic_sysbar_icon_bg"
147 systemui:keyCode="3"
148 />
Jim Miller44c66fe2010-10-20 18:32:52 -0700149 <ImageButton android:id="@+id/recent_apps"
Joe Onoratoea70e632010-09-27 17:59:37 -0700150 android:layout_width="wrap_content"
151 android:layout_height="match_parent"
152 android:src="@drawable/ic_sysbar_recent"
153 android:background="@drawable/ic_sysbar_icon_bg"
Joe Onoratobd5dba32010-10-24 14:28:21 -0700154 android:paddingLeft="15dip"
155 android:paddingRight="15dip"
Joe Onoratoea70e632010-09-27 17:59:37 -0700156 />
157 <com.android.systemui.statusbar.KeyButtonView android:id="@+id/menu"
158 android:layout_width="wrap_content"
159 android:layout_height="match_parent"
Joe Onoratobd5dba32010-10-24 14:28:21 -0700160 android:paddingLeft="15dip"
161 android:paddingRight="15dip"
Joe Onoratoea70e632010-09-27 17:59:37 -0700162 android:src="@drawable/ic_sysbar_menu"
163 android:background="@drawable/ic_sysbar_icon_bg"
164 systemui:keyCode="82"
165 android:visibility="invisible"
166 />
Daniel Sandler524f5682010-10-13 12:13:33 -0400167 <com.android.systemui.statusbar.tablet.ShirtPocket
168 android:id="@+id/pocket"
169 android:layout_width="71dip"
170 android:layout_height="match_parent"
171 android:background="@drawable/ic_sysbar_icon_bg"
Joe Onoratobd5dba32010-10-24 14:28:21 -0700172 android:paddingLeft="15dip"
173 android:paddingRight="15dip"
Daniel Sandler524f5682010-10-13 12:13:33 -0400174 android:animateLayoutChanges="true"
175 android:clickable="true"
176 android:descendantFocusability="blocksDescendants"
177 android:gravity="center"
178 >
179 <ImageView
180 android:id="@+id/pocket_icon"
181 android:src="@drawable/ic_sysbar_pocket"
182 android:visibility="invisible"
183 android:layout_width="match_parent"
184 android:layout_height="wrap_content"
185 android:gravity="center"
186 />
187 </com.android.systemui.statusbar.tablet.ShirtPocket>
Joe Onorato091e1b82010-09-26 18:04:44 -0700188 </LinearLayout>
Daniel Sandlerce70d912010-09-02 11:59:41 -0400189 </RelativeLayout>
190
191 <!-- It's curtains for you. -->
192 <ImageView
193 android:id="@+id/lights_out"
194 android:src="@drawable/ic_sysbar_lightsout"
195 android:gravity="center"
196 android:background="#FF000000"
197 android:layout_width="match_parent"
198 android:layout_height="match_parent"
199 android:visibility="invisible"
200 android:clickable="true"
Daniel Sandlerce70d912010-09-02 11:59:41 -0400201 />
Joe Onoratob62ac122010-09-20 16:16:32 -0400202</com.android.systemui.statusbar.tablet.TabletStatusBarView>
Joe Onorato808182d2010-07-09 18:52:06 -0400203