Daniel Sandler | 2f447aa | 2011-01-14 16:39:19 -0500 | [diff] [blame] | 1 | <!-- |
| 2 | Copyright (C) 2006 The Android Open Source Project |
| 3 | |
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | you may not use this file except in compliance with the License. |
| 6 | You may obtain a copy of the License at |
| 7 | |
| 8 | http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | |
| 10 | Unless required by applicable law or agreed to in writing, software |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | See the License for the specific language governing permissions and |
| 14 | limitations under the License. |
| 15 | --> |
| 16 | |
Svetoslav Ganov | 6179ea3 | 2011-06-28 01:12:41 -0700 | [diff] [blame] | 17 | <com.android.systemui.statusbar.tablet.NotificationPanelTitle |
Daniel Sandler | 2f447aa | 2011-01-14 16:39:19 -0500 | [diff] [blame] | 18 | xmlns:android="http://schemas.android.com/apk/res/android" |
| 19 | xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui" |
| 20 | android:id="@+id/title_area" |
Chris Wren | ebdc5b8 | 2012-06-13 13:35:43 -0400 | [diff] [blame] | 21 | android:background="@drawable/system_bar_notification_header_bg" |
Svetoslav Ganov | 6179ea3 | 2011-06-28 01:12:41 -0700 | [diff] [blame] | 22 | android:layout_width="wrap_content" |
| 23 | android:layout_height="wrap_content" |
| 24 | android:clickable="true" |
Daniel Sandler | 2f447aa | 2011-01-14 16:39:19 -0500 | [diff] [blame] | 25 | android:orientation="vertical" |
Fabrice Di Meglio | 02c40c2 | 2013-03-08 14:05:28 -0800 | [diff] [blame] | 26 | android:paddingStart="26dp" |
Chris Wren | 1e8f65d | 2012-06-06 18:08:56 -0400 | [diff] [blame] | 27 | android:paddingTop="14dp" |
Fabrice Di Meglio | 02c40c2 | 2013-03-08 14:05:28 -0800 | [diff] [blame] | 28 | android:paddingEnd="26dp" |
Daniel Sandler | 2f447aa | 2011-01-14 16:39:19 -0500 | [diff] [blame] | 29 | > |
Svetoslav Ganov | 6179ea3 | 2011-06-28 01:12:41 -0700 | [diff] [blame] | 30 | |
Daniel Sandler | 5962fd5 | 2012-01-11 14:57:04 -0500 | [diff] [blame] | 31 | <TableLayout |
Joe Onorato | fce2bf3 | 2011-02-01 17:00:29 -0800 | [diff] [blame] | 32 | android:id="@+id/icons" |
Daniel Sandler | 5962fd5 | 2012-01-11 14:57:04 -0500 | [diff] [blame] | 33 | android:layout_width="match_parent" |
Joe Onorato | fce2bf3 | 2011-02-01 17:00:29 -0800 | [diff] [blame] | 34 | android:layout_height="wrap_content" |
Fabrice Di Meglio | 8afcd14 | 2012-07-27 18:27:11 -0700 | [diff] [blame] | 35 | android:layout_alignParentStart="true" |
Daniel Sandler | 2f447aa | 2011-01-14 16:39:19 -0500 | [diff] [blame] | 36 | android:layout_alignParentBottom="true" |
Daniel Sandler | 2f447aa | 2011-01-14 16:39:19 -0500 | [diff] [blame] | 37 | android:layout_marginTop="16dp" |
| 38 | android:layout_marginBottom="16dp" |
Daniel Sandler | 5962fd5 | 2012-01-11 14:57:04 -0500 | [diff] [blame] | 39 | android:shrinkColumns="2,4" |
| 40 | android:stretchColumns="7" |
Joe Onorato | fce2bf3 | 2011-02-01 17:00:29 -0800 | [diff] [blame] | 41 | > |
Daniel Sandler | 5962fd5 | 2012-01-11 14:57:04 -0500 | [diff] [blame] | 42 | <TableRow> |
Svetoslav Ganov | 6179ea3 | 2011-06-28 01:12:41 -0700 | [diff] [blame] | 43 | |
Daniel Sandler | 5962fd5 | 2012-01-11 14:57:04 -0500 | [diff] [blame] | 44 | <!-- to keep the column ids stable we wrap disappearing views in |
| 45 | frames --> |
| 46 | <FrameLayout |
Daniel Sandler | 989b9f2 | 2011-11-07 17:09:57 -0500 | [diff] [blame] | 47 | android:layout_height="wrap_content" |
| 48 | android:layout_width="wrap_content" |
Daniel Sandler | 639ed75 | 2012-01-20 14:22:07 -0500 | [diff] [blame] | 49 | android:layout_gravity="center_vertical" |
Daniel Sandler | 5962fd5 | 2012-01-11 14:57:04 -0500 | [diff] [blame] | 50 | > |
| 51 | <ImageView |
| 52 | android:id="@+id/bluetooth" |
| 53 | android:layout_height="wrap_content" |
| 54 | android:layout_width="wrap_content" |
Fabrice Di Meglio | 02c40c2 | 2013-03-08 14:05:28 -0800 | [diff] [blame] | 55 | android:paddingEnd="16dp" |
Daniel Sandler | 5962fd5 | 2012-01-11 14:57:04 -0500 | [diff] [blame] | 56 | android:visibility="gone" |
| 57 | android:contentDescription="@null" |
| 58 | android:layout_gravity="center_vertical" |
| 59 | /> |
| 60 | </FrameLayout> |
| 61 | |
| 62 | <!-- mobile data --> |
| 63 | <FrameLayout |
| 64 | android:id="@+id/mobile_icon" |
| 65 | android:layout_height="wrap_content" |
| 66 | android:layout_width="wrap_content" |
Daniel Sandler | 5962fd5 | 2012-01-11 14:57:04 -0500 | [diff] [blame] | 67 | android:layout_gravity="center_vertical" |
Fabrice Di Meglio | 02c40c2 | 2013-03-08 14:05:28 -0800 | [diff] [blame] | 68 | android:paddingEnd="6dp" |
Daniel Sandler | 5962fd5 | 2012-01-11 14:57:04 -0500 | [diff] [blame] | 69 | > |
| 70 | |
| 71 | <ImageView |
| 72 | android:id="@+id/mobile_signal" |
| 73 | android:layout_height="wrap_content" |
| 74 | android:layout_width="wrap_content" |
| 75 | android:contentDescription="@null" |
| 76 | /> |
| 77 | |
| 78 | <ImageView |
| 79 | android:id="@+id/mobile_type" |
| 80 | android:layout_height="wrap_content" |
| 81 | android:layout_width="wrap_content" |
| 82 | android:contentDescription="@null" |
| 83 | /> |
| 84 | |
| 85 | </FrameLayout> |
| 86 | <TextView |
| 87 | android:id="@+id/mobile_text" |
Daniel Sandler | ef86370 | 2012-07-11 10:03:34 -0400 | [diff] [blame] | 88 | style="@style/SystemBarNotificationText" |
Fabrice Di Meglio | 8afcd14 | 2012-07-27 18:27:11 -0700 | [diff] [blame] | 89 | android:layout_gravity="start|center_vertical" |
Daniel Sandler | 5962fd5 | 2012-01-11 14:57:04 -0500 | [diff] [blame] | 90 | android:layout_width="wrap_content" |
| 91 | android:layout_height="wrap_content" |
Fabrice Di Meglio | 02c40c2 | 2013-03-08 14:05:28 -0800 | [diff] [blame] | 92 | android:paddingEnd="12dp" |
Daniel Sandler | 5962fd5 | 2012-01-11 14:57:04 -0500 | [diff] [blame] | 93 | android:singleLine="true" |
| 94 | android:ellipsize="end" |
| 95 | android:text="@string/status_bar_settings_settings_button" |
| 96 | /> |
| 97 | |
| 98 | <!-- wifi --> |
| 99 | <FrameLayout |
| 100 | android:id="@+id/wifi_icon" |
| 101 | android:layout_height="wrap_content" |
| 102 | android:layout_width="wrap_content" |
Daniel Sandler | 5962fd5 | 2012-01-11 14:57:04 -0500 | [diff] [blame] | 103 | android:layout_gravity="center_vertical" |
Fabrice Di Meglio | 02c40c2 | 2013-03-08 14:05:28 -0800 | [diff] [blame] | 104 | android:paddingEnd="6dp" |
Daniel Sandler | 5962fd5 | 2012-01-11 14:57:04 -0500 | [diff] [blame] | 105 | > |
| 106 | |
| 107 | <ImageView |
| 108 | android:id="@+id/wifi_signal" |
| 109 | android:layout_height="wrap_content" |
| 110 | android:layout_width="wrap_content" |
| 111 | android:contentDescription="@null" |
| 112 | /> |
| 113 | |
| 114 | <ImageView |
| 115 | android:id="@+id/wifi_direction" |
| 116 | android:layout_height="wrap_content" |
| 117 | android:layout_width="wrap_content" |
| 118 | android:contentDescription="@null" |
| 119 | /> |
| 120 | |
| 121 | </FrameLayout> |
| 122 | <TextView |
| 123 | android:id="@+id/wifi_text" |
Daniel Sandler | ef86370 | 2012-07-11 10:03:34 -0400 | [diff] [blame] | 124 | style="@style/SystemBarNotificationText" |
Fabrice Di Meglio | 8afcd14 | 2012-07-27 18:27:11 -0700 | [diff] [blame] | 125 | android:layout_gravity="start|center_vertical" |
Daniel Sandler | 5962fd5 | 2012-01-11 14:57:04 -0500 | [diff] [blame] | 126 | android:layout_width="wrap_content" |
| 127 | android:layout_height="wrap_content" |
Fabrice Di Meglio | 02c40c2 | 2013-03-08 14:05:28 -0800 | [diff] [blame] | 128 | android:paddingEnd="12dp" |
Daniel Sandler | 5962fd5 | 2012-01-11 14:57:04 -0500 | [diff] [blame] | 129 | android:singleLine="true" |
| 130 | android:ellipsize="end" |
| 131 | android:text="@string/status_bar_settings_settings_button" |
Joe Onorato | fce2bf3 | 2011-02-01 17:00:29 -0800 | [diff] [blame] | 132 | /> |
Svetoslav Ganov | 6179ea3 | 2011-06-28 01:12:41 -0700 | [diff] [blame] | 133 | |
Joe Onorato | fce2bf3 | 2011-02-01 17:00:29 -0800 | [diff] [blame] | 134 | <ImageView |
Daniel Sandler | 5962fd5 | 2012-01-11 14:57:04 -0500 | [diff] [blame] | 135 | android:id="@+id/battery" |
Daniel Sandler | 989b9f2 | 2011-11-07 17:09:57 -0500 | [diff] [blame] | 136 | android:layout_height="wrap_content" |
| 137 | android:layout_width="wrap_content" |
Daniel Sandler | 5962fd5 | 2012-01-11 14:57:04 -0500 | [diff] [blame] | 138 | android:scaleType="centerInside" |
| 139 | android:layout_gravity="center_vertical" |
| 140 | android:layout_alignBaseline="@id/wifi_signal" |
Fabrice Di Meglio | 02c40c2 | 2013-03-08 14:05:28 -0800 | [diff] [blame] | 141 | android:paddingEnd="6dp" |
Svetoslav Ganov | 6179ea3 | 2011-06-28 01:12:41 -0700 | [diff] [blame] | 142 | android:contentDescription="@null" |
Joe Onorato | fce2bf3 | 2011-02-01 17:00:29 -0800 | [diff] [blame] | 143 | /> |
Svetoslav Ganov | 6179ea3 | 2011-06-28 01:12:41 -0700 | [diff] [blame] | 144 | |
Daniel Sandler | 5962fd5 | 2012-01-11 14:57:04 -0500 | [diff] [blame] | 145 | <TextView |
| 146 | android:id="@+id/battery_text" |
Daniel Sandler | ef86370 | 2012-07-11 10:03:34 -0400 | [diff] [blame] | 147 | style="@style/SystemBarNotificationText" |
Daniel Sandler | 639ed75 | 2012-01-20 14:22:07 -0500 | [diff] [blame] | 148 | android:layout_width="wrap_content" |
Daniel Sandler | 989b9f2 | 2011-11-07 17:09:57 -0500 | [diff] [blame] | 149 | android:layout_height="wrap_content" |
Fabrice Di Meglio | 8afcd14 | 2012-07-27 18:27:11 -0700 | [diff] [blame] | 150 | android:layout_gravity="start|center_vertical" |
Fabrice Di Meglio | 02c40c2 | 2013-03-08 14:05:28 -0800 | [diff] [blame] | 151 | android:paddingEnd="2dp" |
Daniel Sandler | 5962fd5 | 2012-01-11 14:57:04 -0500 | [diff] [blame] | 152 | android:singleLine="true" |
| 153 | android:text="@string/status_bar_settings_settings_button" |
Joe Onorato | fce2bf3 | 2011-02-01 17:00:29 -0800 | [diff] [blame] | 154 | /> |
Svetoslav Ganov | 6179ea3 | 2011-06-28 01:12:41 -0700 | [diff] [blame] | 155 | |
Daniel Sandler | 5962fd5 | 2012-01-11 14:57:04 -0500 | [diff] [blame] | 156 | <!-- this will stretch to eat up available space --> |
| 157 | <View |
| 158 | android:layout_width="0dp" |
| 159 | android:layout_height="0dp" |
| 160 | /> |
Daniel Sandler | 2f447aa | 2011-01-14 16:39:19 -0500 | [diff] [blame] | 161 | |
Daniel Sandler | 5962fd5 | 2012-01-11 14:57:04 -0500 | [diff] [blame] | 162 | <FrameLayout |
| 163 | android:layout_width="wrap_content" |
| 164 | android:layout_height="wrap_content" |
| 165 | android:layout_gravity="center_vertical" |
| 166 | > |
Daniel Sandler | 2f447aa | 2011-01-14 16:39:19 -0500 | [diff] [blame] | 167 | |
Daniel Sandler | 5962fd5 | 2012-01-11 14:57:04 -0500 | [diff] [blame] | 168 | <ImageView |
| 169 | android:id="@+id/settings_button" |
| 170 | android:layout_width="wrap_content" |
| 171 | android:layout_height="wrap_content" |
Daniel Sandler | 5962fd5 | 2012-01-11 14:57:04 -0500 | [diff] [blame] | 172 | android:src="@drawable/ic_sysbar_quicksettings" |
Casey Burkhardt | 0312d6d | 2012-10-16 18:38:22 -0700 | [diff] [blame] | 173 | android:contentDescription="@string/accessibility_desc_quick_settings" |
Daniel Sandler | 5962fd5 | 2012-01-11 14:57:04 -0500 | [diff] [blame] | 174 | /> |
Daniel Sandler | 2f447aa | 2011-01-14 16:39:19 -0500 | [diff] [blame] | 175 | |
Daniel Sandler | 5962fd5 | 2012-01-11 14:57:04 -0500 | [diff] [blame] | 176 | <ImageView |
| 177 | android:id="@+id/notification_button" |
| 178 | android:layout_width="wrap_content" |
| 179 | android:layout_height="wrap_content" |
Daniel Sandler | 5962fd5 | 2012-01-11 14:57:04 -0500 | [diff] [blame] | 180 | android:src="@drawable/ic_notification_open" |
| 181 | android:visibility="invisible" |
| 182 | android:contentDescription="@string/accessibility_notifications_button" |
| 183 | /> |
| 184 | </FrameLayout> |
Daniel Sandler | 2f447aa | 2011-01-14 16:39:19 -0500 | [diff] [blame] | 185 | |
Daniel Sandler | 5962fd5 | 2012-01-11 14:57:04 -0500 | [diff] [blame] | 186 | </TableRow> |
| 187 | </TableLayout> |
Daniel Sandler | 2f447aa | 2011-01-14 16:39:19 -0500 | [diff] [blame] | 188 | |
Chris Wren | 1e8f65d | 2012-06-06 18:08:56 -0400 | [diff] [blame] | 189 | <LinearLayout |
| 190 | xmlns:android="http://schemas.android.com/apk/res/android" |
| 191 | xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui" |
| 192 | android:layout_width="match_parent" |
Daniel Sandler | 2f447aa | 2011-01-14 16:39:19 -0500 | [diff] [blame] | 193 | android:layout_height="wrap_content" |
Chris Wren | 1e8f65d | 2012-06-06 18:08:56 -0400 | [diff] [blame] | 194 | android:paddingTop="@dimen/notification_panel_header_padding_top" |
| 195 | android:orientation="horizontal" |
| 196 | android:gravity="center_vertical" |
| 197 | android:baselineAligned="false" |
Daniel Sandler | 2f447aa | 2011-01-14 16:39:19 -0500 | [diff] [blame] | 198 | > |
Daniel Sandler | 2f447aa | 2011-01-14 16:39:19 -0500 | [diff] [blame] | 199 | |
Chris Wren | 1e8f65d | 2012-06-06 18:08:56 -0400 | [diff] [blame] | 200 | <com.android.systemui.statusbar.policy.Clock |
| 201 | android:id="@+id/clock" |
| 202 | android:layout_width="wrap_content" |
| 203 | android:layout_height="wrap_content" |
| 204 | android:singleLine="true" |
Daniel Sandler | ef86370 | 2012-07-11 10:03:34 -0400 | [diff] [blame] | 205 | android:textAppearance="@style/TextAppearance.SystemBar.Expanded.Clock" |
Chris Wren | 1e8f65d | 2012-06-06 18:08:56 -0400 | [diff] [blame] | 206 | /> |
| 207 | |
| 208 | <com.android.systemui.statusbar.policy.DateView |
| 209 | android:id="@+id/date" |
| 210 | android:layout_width="wrap_content" |
| 211 | android:layout_height="wrap_content" |
Fabrice Di Meglio | 8afcd14 | 2012-07-27 18:27:11 -0700 | [diff] [blame] | 212 | android:layout_marginStart="8dp" |
| 213 | android:layout_marginEnd="8dp" |
Daniel Sandler | ef86370 | 2012-07-11 10:03:34 -0400 | [diff] [blame] | 214 | android:textAppearance="@style/TextAppearance.SystemBar.Expanded.Date" |
Chris Wren | 1e8f65d | 2012-06-06 18:08:56 -0400 | [diff] [blame] | 215 | /> |
Daniel Sandler | 2f447aa | 2011-01-14 16:39:19 -0500 | [diff] [blame] | 216 | |
Chris Wren | 1e8f65d | 2012-06-06 18:08:56 -0400 | [diff] [blame] | 217 | <Space |
| 218 | android:layout_width="0dp" |
| 219 | android:layout_height="48dp" |
| 220 | android:layout_weight="1" |
| 221 | /> |
| 222 | |
| 223 | <ImageView android:id="@+id/clear_all_button" |
| 224 | android:layout_width="wrap_content" |
| 225 | android:layout_height="wrap_content" |
| 226 | android:scaleType="center" |
| 227 | android:src="@drawable/ic_notify_clear" |
| 228 | android:contentDescription="@string/accessibility_clear_all" |
| 229 | /> |
| 230 | </LinearLayout> |
Svetoslav Ganov | 6179ea3 | 2011-06-28 01:12:41 -0700 | [diff] [blame] | 231 | </com.android.systemui.statusbar.tablet.NotificationPanelTitle> |