Daniel Sandler | bf6e0ba9 | 2012-05-11 10:40:35 -0400 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- |
| 3 | ** Copyright 2012, 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. |
| 16 | --> |
| 17 | |
Jorim Jaggi | d7daab7 | 2014-05-06 22:22:20 +0200 | [diff] [blame] | 18 | <!-- Extends RelativeLayout --> |
| 19 | <com.android.systemui.statusbar.phone.StatusBarHeaderView |
Daniel Sandler | bf6e0ba9 | 2012-05-11 10:40:35 -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" |
Daniel Sandler | efb0faf | 2012-10-10 14:15:34 -0700 | [diff] [blame] | 22 | android:id="@+id/header" |
Jorim Jaggi | e18c2cd | 2014-05-08 19:16:49 +0200 | [diff] [blame] | 23 | style="@style/StatusBarHeader" |
Jorim Jaggi | d7daab7 | 2014-05-06 22:22:20 +0200 | [diff] [blame] | 24 | android:layout_height="@dimen/status_bar_header_height" |
Jorim Jaggi | e18c2cd | 2014-05-08 19:16:49 +0200 | [diff] [blame] | 25 | android:paddingStart="@dimen/notification_side_padding" |
| 26 | android:paddingEnd="@dimen/notification_side_padding" |
Daniel Sandler | bf6e0ba9 | 2012-05-11 10:40:35 -0400 | [diff] [blame] | 27 | android:baselineAligned="false" |
Jorim Jaggi | f62f2bb | 2014-05-25 22:28:41 +0200 | [diff] [blame] | 28 | android:elevation="4dp" |
Daniel Sandler | bf6e0ba9 | 2012-05-11 10:40:35 -0400 | [diff] [blame] | 29 | > |
Jorim Jaggi | d7daab7 | 2014-05-06 22:22:20 +0200 | [diff] [blame] | 30 | |
| 31 | <View |
| 32 | android:id="@+id/background" |
| 33 | android:layout_width="match_parent" |
| 34 | android:layout_height="match_parent" |
| 35 | android:background="@drawable/notification_header_bg" |
| 36 | android:clickable="true" |
| 37 | /> |
Daniel Sandler | 3679bf5 | 2012-10-16 21:30:28 -0400 | [diff] [blame] | 38 | <RelativeLayout |
| 39 | android:id="@+id/datetime" |
Daniel Sandler | bf6e0ba9 | 2012-05-11 10:40:35 -0400 | [diff] [blame] | 40 | android:layout_width="wrap_content" |
Jorim Jaggi | 740beb5 | 2014-05-11 18:53:19 +0200 | [diff] [blame] | 41 | android:layout_height="wrap_content" |
Jorim Jaggi | d7daab7 | 2014-05-06 22:22:20 +0200 | [diff] [blame] | 42 | android:layout_gravity="start" |
Jorim Jaggi | 740beb5 | 2014-05-11 18:53:19 +0200 | [diff] [blame] | 43 | android:paddingTop="16dp" |
| 44 | android:paddingBottom="16dp" |
| 45 | android:paddingStart="16dp" |
| 46 | android:paddingEnd="16dp" |
Daniel Sandler | 3679bf5 | 2012-10-16 21:30:28 -0400 | [diff] [blame] | 47 | android:background="@drawable/ic_notify_button_bg" |
| 48 | android:enabled="false" |
Chris Wren | 5fb18aa | 2012-10-11 14:39:38 -0400 | [diff] [blame] | 49 | > |
| 50 | <com.android.systemui.statusbar.policy.Clock |
| 51 | android:id="@+id/clock" |
| 52 | android:layout_width="wrap_content" |
| 53 | android:layout_height="wrap_content" |
Chris Wren | 5fb18aa | 2012-10-11 14:39:38 -0400 | [diff] [blame] | 54 | android:singleLine="true" |
| 55 | android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Clock" |
Jorim Jaggi | 740beb5 | 2014-05-11 18:53:19 +0200 | [diff] [blame] | 56 | systemui:amPmStyle="normal" |
Chris Wren | 5fb18aa | 2012-10-11 14:39:38 -0400 | [diff] [blame] | 57 | /> |
Daniel Sandler | bf6e0ba9 | 2012-05-11 10:40:35 -0400 | [diff] [blame] | 58 | |
Chris Wren | 5fb18aa | 2012-10-11 14:39:38 -0400 | [diff] [blame] | 59 | <com.android.systemui.statusbar.policy.DateView android:id="@+id/date" |
| 60 | android:layout_width="wrap_content" |
| 61 | android:layout_height="wrap_content" |
Chris Wren | 5fb18aa | 2012-10-11 14:39:38 -0400 | [diff] [blame] | 62 | android:singleLine="true" |
| 63 | android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Date" |
Jorim Jaggi | 740beb5 | 2014-05-11 18:53:19 +0200 | [diff] [blame] | 64 | android:layout_below="@id/clock" |
Chris Wren | 5fb18aa | 2012-10-11 14:39:38 -0400 | [diff] [blame] | 65 | /> |
Daniel Sandler | 3679bf5 | 2012-10-16 21:30:28 -0400 | [diff] [blame] | 66 | </RelativeLayout> |
Daniel Sandler | bf6e0ba9 | 2012-05-11 10:40:35 -0400 | [diff] [blame] | 67 | |
Jorim Jaggi | 3d878be | 2014-05-10 03:22:32 +0200 | [diff] [blame] | 68 | <com.android.systemui.statusbar.phone.MultiUserSwitch android:id="@+id/multi_user_switch" |
| 69 | android:layout_width="40dp" |
| 70 | android:layout_height="@dimen/status_bar_header_height" |
| 71 | android:layout_alignParentEnd="true" |
| 72 | android:background="@null" |
| 73 | android:scaleType="centerInside" |
Jorim Jaggi | 125bd99 | 2014-05-26 02:45:33 +0200 | [diff] [blame] | 74 | android:padding="8dp" |
Jorim Jaggi | 3d878be | 2014-05-10 03:22:32 +0200 | [diff] [blame] | 75 | /> |
| 76 | |
Jorim Jaggi | 13c1b1f | 2014-05-11 21:55:00 +0200 | [diff] [blame] | 77 | <ImageButton android:id="@+id/settings_button" |
Alan Viverette | 830960c | 2014-06-06 15:48:55 -0700 | [diff] [blame] | 78 | style="@android:style/Widget.Material.Button.Borderless" |
Jorim Jaggi | 13c1b1f | 2014-05-11 21:55:00 +0200 | [diff] [blame] | 79 | android:layout_toStartOf="@id/multi_user_switch" |
| 80 | android:layout_width="56dp" |
| 81 | android:layout_height="@dimen/status_bar_header_height" |
| 82 | android:src="@drawable/ic_settings_24dp" |
| 83 | android:contentDescription="@string/accessibility_desc_quick_settings"/> |
| 84 | |
Jorim Jaggi | 0d74eeb | 2014-05-09 22:05:24 +0200 | [diff] [blame] | 85 | <FrameLayout android:id="@+id/system_icons_container" |
| 86 | android:layout_width="wrap_content" |
| 87 | android:layout_height="@dimen/status_bar_header_height" |
Jorim Jaggi | 3d878be | 2014-05-10 03:22:32 +0200 | [diff] [blame] | 88 | android:layout_toStartOf="@id/multi_user_switch" |
| 89 | android:layout_marginEnd="4dp" |
Jorim Jaggi | 0d74eeb | 2014-05-09 22:05:24 +0200 | [diff] [blame] | 90 | /> |
Jorim Jaggi | 3d878be | 2014-05-10 03:22:32 +0200 | [diff] [blame] | 91 | |
Jorim Jaggi | cc12a9d | 2014-05-26 01:55:29 +0200 | [diff] [blame] | 92 | <com.android.keyguard.CarrierText |
| 93 | android:id="@+id/keyguard_carrier_text" |
| 94 | android:layout_width="match_parent" |
| 95 | android:layout_height="@dimen/status_bar_header_height_keyguard" |
| 96 | android:layout_marginLeft="8dp" |
| 97 | android:layout_toStartOf="@id/system_icons_container" |
| 98 | android:gravity="center_vertical" |
| 99 | android:ellipsize="marquee" |
| 100 | android:textAppearance="?android:attr/textAppearanceSmall" |
Adrian Roos | 3c64aba | 2014-05-26 23:12:45 +0200 | [diff] [blame] | 101 | android:textColor="#ffffff" |
| 102 | android:singleLine="true" /> |
Jorim Jaggi | cc12a9d | 2014-05-26 01:55:29 +0200 | [diff] [blame] | 103 | |
Jorim Jaggi | f056e35 | 2014-05-11 23:09:22 +0200 | [diff] [blame] | 104 | <include |
| 105 | layout="@layout/quick_settings_brightness_dialog" |
| 106 | android:id="@+id/brightness_container" |
| 107 | android:layout_width="match_parent" |
| 108 | /> |
| 109 | |
Daniel Sandler | b9301c3 | 2012-08-14 15:08:24 -0400 | [diff] [blame] | 110 | <TextView |
| 111 | android:id="@+id/header_debug_info" |
| 112 | android:visibility="invisible" |
| 113 | android:layout_width="wrap_content" |
| 114 | android:layout_height="wrap_content" |
| 115 | android:layout_gravity="center_vertical" |
| 116 | android:fontFamily="sans-serif-condensed" |
| 117 | android:textSize="11dp" |
| 118 | android:textStyle="bold" |
| 119 | android:textColor="#00A040" |
| 120 | android:padding="2dp" |
| 121 | /> |
Daniel Sandler | efb0faf | 2012-10-10 14:15:34 -0700 | [diff] [blame] | 122 | |
Jorim Jaggi | d7daab7 | 2014-05-06 22:22:20 +0200 | [diff] [blame] | 123 | </com.android.systemui.statusbar.phone.StatusBarHeaderView> |