Joe Onorato | 808182d | 2010-07-09 18:52:06 -0400 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- |
Joe Onorato | ef1e776 | 2010-09-17 18:38:38 -0400 | [diff] [blame] | 3 | * 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 Onorato | 808182d | 2010-07-09 18:52:06 -0400 | [diff] [blame] | 16 | --> |
| 17 | |
| 18 | <!-- android:background="@drawable/status_bar_closed_default_background" --> |
Joe Onorato | b62ac12 | 2010-09-20 16:16:32 -0400 | [diff] [blame] | 19 | <com.android.systemui.statusbar.tablet.TabletStatusBarView |
Joe Onorato | 808182d | 2010-07-09 18:52:06 -0400 | [diff] [blame] | 20 | 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 Onorato | 808182d | 2010-07-09 18:52:06 -0400 | [diff] [blame] | 23 | > |
Daniel Sandler | ce70d91 | 2010-09-02 11:59:41 -0400 | [diff] [blame] | 24 | <RelativeLayout |
| 25 | android:id="@+id/bar_contents" |
| 26 | android:layout_width="match_parent" |
| 27 | android:layout_height="match_parent" |
| 28 | > |
Joe Onorato | 808182d | 2010-07-09 18:52:06 -0400 | [diff] [blame] | 29 | |
Joe Onorato | 55d2d76 | 2010-09-26 13:02:01 -0700 | [diff] [blame] | 30 | <ImageView |
Daniel Sandler | 271ea12 | 2010-10-22 14:06:10 -0400 | [diff] [blame] | 31 | android:id="@+id/notificationTrigger" |
Joe Onorato | 55d2d76 | 2010-09-26 13:02:01 -0700 | [diff] [blame] | 32 | android:layout_width="wrap_content" |
Daniel Sandler | 271ea12 | 2010-10-22 14:06:10 -0400 | [diff] [blame] | 33 | android:layout_height="match_parent" |
| 34 | android:layout_alignParentRight="true" |
| 35 | android:layout_marginLeft="6dip" |
| 36 | android:src="@drawable/ic_sysbar_noti_none" |
Daniel Sandler | a84a69f | 2010-10-08 10:39:46 -0400 | [diff] [blame] | 37 | android:background="@drawable/ic_sysbar_icon_bg" |
Daniel Sandler | 271ea12 | 2010-10-22 14:06:10 -0400 | [diff] [blame] | 38 | android:gravity="center" |
Joe Onorato | 55d2d76 | 2010-09-26 13:02:01 -0700 | [diff] [blame] | 39 | /> |
| 40 | |
| 41 | <LinearLayout |
| 42 | android:id="@+id/notificationButtons" |
| 43 | android:layout_width="wrap_content" |
| 44 | android:layout_height="match_parent" |
Daniel Sandler | 271ea12 | 2010-10-22 14:06:10 -0400 | [diff] [blame] | 45 | android:layout_toLeftOf="@+id/notificationTrigger" |
Joe Onorato | 55d2d76 | 2010-09-26 13:02:01 -0700 | [diff] [blame] | 46 | android:gravity="center_vertical" |
| 47 | android:orientation="horizontal" |
| 48 | android:visibility="gone" |
| 49 | > |
| 50 | |
Joe Onorato | 55d2d76 | 2010-09-26 13:02:01 -0700 | [diff] [blame] | 51 | <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 Onorato | ea70e63 | 2010-09-27 17:59:37 -0700 | [diff] [blame] | 64 | <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 Onorato | 55d2d76 | 2010-09-26 13:02:01 -0700 | [diff] [blame] | 77 | </LinearLayout> |
| 78 | |
Joe Onorato | 808182d | 2010-07-09 18:52:06 -0400 | [diff] [blame] | 79 | <com.android.systemui.statusbar.tablet.NotificationIconArea |
| 80 | android:id="@+id/notificationIcons" |
| 81 | android:layout_width="wrap_content" |
| 82 | android:layout_height="match_parent" |
Daniel Sandler | 271ea12 | 2010-10-22 14:06:10 -0400 | [diff] [blame] | 83 | android:layout_toLeftOf="@+id/notificationTrigger" |
Joe Onorato | 808182d | 2010-07-09 18:52:06 -0400 | [diff] [blame] | 84 | android:gravity="center_vertical" |
| 85 | android:orientation="horizontal" |
Daniel Sandler | 3a04ef0 | 2010-07-15 16:35:29 -0400 | [diff] [blame] | 86 | > |
Joe Onorato | ea70e63 | 2010-09-27 17:59:37 -0700 | [diff] [blame] | 87 | <com.android.systemui.statusbar.tablet.InputMethodButton |
| 88 | android:id="@+id/imeButton" |
Daniel Sandler | 3a04ef0 | 2010-07-15 16:35:29 -0400 | [diff] [blame] | 89 | android:layout_width="wrap_content" |
Joe Onorato | ea70e63 | 2010-09-27 17:59:37 -0700 | [diff] [blame] | 90 | android:layout_height="match_parent" |
Daniel Sandler | 9120d55 | 2010-07-23 09:11:14 -0400 | [diff] [blame] | 91 | android:layout_marginLeft="8dip" |
Joe Onorato | ea70e63 | 2010-09-27 17:59:37 -0700 | [diff] [blame] | 92 | android:src="@drawable/ic_sysbar_ime_default" |
| 93 | android:background="@drawable/ic_sysbar_icon_bg" |
| 94 | android:visibility="invisible" |
Daniel Sandler | 3a04ef0 | 2010-07-15 16:35:29 -0400 | [diff] [blame] | 95 | /> |
| 96 | <view |
Joe Onorato | ea70e63 | 2010-09-27 17:59:37 -0700 | [diff] [blame] | 97 | class="com.android.systemui.statusbar.tablet.NotificationIconArea$IconLayout" |
| 98 | android:id="@+id/icons" |
Daniel Sandler | a84a69f | 2010-10-08 10:39:46 -0400 | [diff] [blame] | 99 | android:layout_width="wrap_content" |
Joe Onorato | ea70e63 | 2010-09-27 17:59:37 -0700 | [diff] [blame] | 100 | android:layout_height="@*android:dimen/status_bar_icon_size" |
Daniel Sandler | a84a69f | 2010-10-08 10:39:46 -0400 | [diff] [blame] | 101 | android:layout_marginLeft="8dip" |
Daniel Sandler | a84a69f | 2010-10-08 10:39:46 -0400 | [diff] [blame] | 102 | /> |
Daniel Sandler | 9120d55 | 2010-07-23 09:11:14 -0400 | [diff] [blame] | 103 | </com.android.systemui.statusbar.tablet.NotificationIconArea> |
| 104 | |
Daniel Sandler | a84a69f | 2010-10-08 10:39:46 -0400 | [diff] [blame] | 105 | |
Joe Onorato | ef1e776 | 2010-09-17 18:38:38 -0400 | [diff] [blame] | 106 | <FrameLayout |
| 107 | android:id="@+id/ticker" |
| 108 | android:layout_width="wrap_content" |
Daniel Sandler | 9120d55 | 2010-07-23 09:11:14 -0400 | [diff] [blame] | 109 | android:layout_height="match_parent" |
Joe Onorato | ea70e63 | 2010-09-27 17:59:37 -0700 | [diff] [blame] | 110 | android:layout_alignParentRight="true" |
| 111 | android:layout_toRightOf="@+id/systemInfo" |
Daniel Sandler | dfa08db | 2010-08-05 16:18:42 -0400 | [diff] [blame] | 112 | android:paddingLeft="6dip" |
Joe Onorato | ef1e776 | 2010-09-17 18:38:38 -0400 | [diff] [blame] | 113 | android:gravity="center_vertical" |
| 114 | android:animateLayoutChanges="true" |
| 115 | /> |
Daniel Sandler | dfa08db | 2010-08-05 16:18:42 -0400 | [diff] [blame] | 116 | |
| 117 | <include layout="@layout/status_bar_center" |
Daniel Sandler | d39e388 | 2010-08-31 14:16:13 -0400 | [diff] [blame] | 118 | android:layout_width="256dip" |
Daniel Sandler | 764b4da | 2010-08-24 16:24:35 -0400 | [diff] [blame] | 119 | android:layout_height="match_parent" |
Daniel Sandler | dfa08db | 2010-08-05 16:18:42 -0400 | [diff] [blame] | 120 | android:layout_centerInParent="true" |
| 121 | /> |
Joe Onorato | 808182d | 2010-07-09 18:52:06 -0400 | [diff] [blame] | 122 | |
Joe Onorato | 091e1b8 | 2010-09-26 18:04:44 -0700 | [diff] [blame] | 123 | <LinearLayout |
| 124 | android:id="@+id/navigationArea" |
Daniel Sandler | 804eb85 | 2010-08-31 15:43:50 -0400 | [diff] [blame] | 125 | android:layout_width="wrap_content" |
| 126 | android:layout_height="match_parent" |
Joe Onorato | ea70e63 | 2010-09-27 17:59:37 -0700 | [diff] [blame] | 127 | android:layout_alignParentLeft="true" |
Joe Onorato | 091e1b8 | 2010-09-26 18:04:44 -0700 | [diff] [blame] | 128 | android:orientation="horizontal" |
| 129 | > |
Joe Onorato | ea70e63 | 2010-09-27 17:59:37 -0700 | [diff] [blame] | 130 | |
| 131 | <com.android.systemui.statusbar.KeyButtonView android:id="@+id/back" |
| 132 | android:layout_width="wrap_content" |
| 133 | android:layout_height="match_parent" |
Joe Onorato | bd5dba3 | 2010-10-24 14:28:21 -0700 | [diff] [blame] | 134 | android:paddingLeft="15dip" |
| 135 | android:paddingRight="15dip" |
Joe Onorato | 7e750b1 | 2010-11-02 00:14:33 -0700 | [diff] [blame^] | 136 | android:src="@drawable/ic_sysbar_back" |
Joe Onorato | ea70e63 | 2010-09-27 17:59:37 -0700 | [diff] [blame] | 137 | 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 Onorato | bd5dba3 | 2010-10-24 14:28:21 -0700 | [diff] [blame] | 143 | android:paddingLeft="15dip" |
| 144 | android:paddingRight="15dip" |
Joe Onorato | ea70e63 | 2010-09-27 17:59:37 -0700 | [diff] [blame] | 145 | android:src="@drawable/ic_sysbar_home" |
| 146 | android:background="@drawable/ic_sysbar_icon_bg" |
| 147 | systemui:keyCode="3" |
| 148 | /> |
Jim Miller | 44c66fe | 2010-10-20 18:32:52 -0700 | [diff] [blame] | 149 | <ImageButton android:id="@+id/recent_apps" |
Joe Onorato | ea70e63 | 2010-09-27 17:59:37 -0700 | [diff] [blame] | 150 | 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 Onorato | bd5dba3 | 2010-10-24 14:28:21 -0700 | [diff] [blame] | 154 | android:paddingLeft="15dip" |
| 155 | android:paddingRight="15dip" |
Joe Onorato | ea70e63 | 2010-09-27 17:59:37 -0700 | [diff] [blame] | 156 | /> |
| 157 | <com.android.systemui.statusbar.KeyButtonView android:id="@+id/menu" |
| 158 | android:layout_width="wrap_content" |
| 159 | android:layout_height="match_parent" |
Joe Onorato | bd5dba3 | 2010-10-24 14:28:21 -0700 | [diff] [blame] | 160 | android:paddingLeft="15dip" |
| 161 | android:paddingRight="15dip" |
Joe Onorato | ea70e63 | 2010-09-27 17:59:37 -0700 | [diff] [blame] | 162 | android:src="@drawable/ic_sysbar_menu" |
| 163 | android:background="@drawable/ic_sysbar_icon_bg" |
| 164 | systemui:keyCode="82" |
| 165 | android:visibility="invisible" |
| 166 | /> |
Daniel Sandler | 524f568 | 2010-10-13 12:13:33 -0400 | [diff] [blame] | 167 | <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 Onorato | bd5dba3 | 2010-10-24 14:28:21 -0700 | [diff] [blame] | 172 | android:paddingLeft="15dip" |
| 173 | android:paddingRight="15dip" |
Daniel Sandler | 524f568 | 2010-10-13 12:13:33 -0400 | [diff] [blame] | 174 | 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 Onorato | 091e1b8 | 2010-09-26 18:04:44 -0700 | [diff] [blame] | 188 | </LinearLayout> |
Daniel Sandler | ce70d91 | 2010-09-02 11:59:41 -0400 | [diff] [blame] | 189 | </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 Sandler | ce70d91 | 2010-09-02 11:59:41 -0400 | [diff] [blame] | 201 | /> |
Joe Onorato | b62ac12 | 2010-09-20 16:16:32 -0400 | [diff] [blame] | 202 | </com.android.systemui.statusbar.tablet.TabletStatusBarView> |
Joe Onorato | 808182d | 2010-07-09 18:52:06 -0400 | [diff] [blame] | 203 | |