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 18<!-- Extends RelativeLayout --> 19<com.android.systemui.statusbar.phone.StatusBarHeaderView 20 xmlns:android="http://schemas.android.com/apk/res/android" 21 xmlns:systemui="http://schemas.android.com/apk/res-auto" 22 android:id="@+id/header" 23 android:layout_width="@dimen/notification_panel_width" 24 android:layout_height="@dimen/status_bar_header_height" 25 android:layout_gravity="@integer/notification_panel_layout_gravity" 26 android:baselineAligned="false" 27 android:elevation="4dp" 28 android:background="@drawable/notification_header_bg" 29 android:clickable="true" 30 android:focusable="true" 31 > 32 33 <com.android.systemui.statusbar.phone.MultiUserSwitch android:id="@+id/multi_user_switch" 34 android:layout_width="@dimen/multi_user_switch_width_collapsed" 35 android:layout_height="@dimen/status_bar_header_height" 36 android:layout_alignParentEnd="true" 37 android:background="@drawable/ripple_drawable" > 38 <ImageView android:id="@+id/multi_user_avatar" 39 android:layout_width="@dimen/multi_user_avatar_expanded_size" 40 android:layout_height="@dimen/multi_user_avatar_expanded_size" 41 android:layout_gravity="center" 42 android:scaleType="centerInside"/> 43 </com.android.systemui.statusbar.phone.MultiUserSwitch> 44 45 <com.android.systemui.statusbar.AlphaOptimizedFrameLayout 46 android:id="@+id/settings_button_container" 47 android:layout_width="48dp" 48 android:layout_height="@dimen/status_bar_header_height" 49 android:clipChildren="false" 50 android:clipToPadding="false" 51 android:layout_toStartOf="@id/multi_user_switch"> 52 53 <com.android.systemui.statusbar.phone.SettingsButton android:id="@+id/settings_button" 54 style="@android:style/Widget.Material.Button.Borderless" 55 android:layout_width="match_parent" 56 android:layout_height="match_parent" 57 android:background="@drawable/ripple_drawable" 58 android:src="@drawable/ic_settings" 59 android:contentDescription="@string/accessibility_desc_settings" /> 60 <com.android.systemui.statusbar.AlphaOptimizedImageView android:id="@+id/tuner_icon" 61 android:layout_width="match_parent" 62 android:layout_height="match_parent" 63 android:paddingStart="36dp" 64 android:tint="#4DFFFFFF" 65 android:tintMode="src_in" 66 android:visibility="invisible" 67 android:src="@drawable/tuner" /> 68 69 </com.android.systemui.statusbar.AlphaOptimizedFrameLayout> 70 71 <LinearLayout android:id="@+id/system_icons_super_container" 72 android:layout_width="wrap_content" 73 android:layout_height="@dimen/status_bar_header_height" 74 android:layout_toStartOf="@id/multi_user_switch" 75 android:layout_alignWithParentIfMissing="true" 76 android:layout_marginStart="16dp" 77 android:background="@drawable/ripple_drawable" 78 android:paddingEnd="4dp" > 79 <FrameLayout android:id="@+id/system_icons_container" 80 android:layout_width="wrap_content" 81 android:layout_height="@dimen/status_bar_height" 82 android:layout_gravity="center_vertical" 83 > 84 <include layout="@layout/system_icons" /> 85 </FrameLayout> 86 <TextView android:id="@+id/battery_level" 87 android:layout_width="wrap_content" 88 android:layout_height="wrap_content" 89 android:layout_gravity="center_vertical" 90 android:layout_marginStart="@dimen/header_battery_margin_expanded" 91 android:paddingEnd="@dimen/battery_level_padding_end" 92 android:textColor="#ffffff" 93 android:textSize="@dimen/battery_level_text_size" 94 android:importantForAccessibility="noHideDescendants"/> 95 </LinearLayout> 96 97 <TextView 98 android:id="@+id/header_emergency_calls_only" 99 android:layout_height="@dimen/status_bar_header_height" 100 android:layout_width="wrap_content" 101 android:layout_alignParentStart="true" 102 android:layout_toStartOf="@id/system_icons_super_container" 103 android:paddingStart="16dp" 104 android:paddingEnd="16dp" 105 android:visibility="gone" 106 android:textAppearance="@style/TextAppearance.StatusBar.Expanded.EmergencyCallsOnly" 107 android:text="@*android:string/emergency_calls_only" 108 android:singleLine="true" 109 android:gravity="center_vertical" /> 110 111 <FrameLayout 112 android:id="@+id/date_group" 113 android:layout_width="wrap_content" 114 android:layout_height="wrap_content" 115 android:layout_marginBottom="@dimen/clock_collapsed_bottom_margin" 116 android:layout_alignParentBottom="true"> 117 <com.android.systemui.statusbar.policy.DateView android:id="@+id/date_collapsed" 118 android:layout_width="wrap_content" 119 android:layout_height="wrap_content" 120 android:layout_marginStart="16dp" 121 android:singleLine="true" 122 android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Date" 123 android:layout_below="@id/clock" 124 systemui:datePattern="@string/abbrev_wday_month_day_no_year_alarm" 125 /> 126 127 <com.android.systemui.statusbar.policy.DateView android:id="@+id/date_expanded" 128 android:layout_width="wrap_content" 129 android:layout_height="wrap_content" 130 android:layout_marginStart="16dp" 131 android:singleLine="true" 132 android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Date" 133 android:layout_below="@id/clock" 134 systemui:datePattern="eeeeMMMMd" 135 /> 136 </FrameLayout> 137 138 <include layout="@layout/split_clock_view" 139 android:layout_width="wrap_content" 140 android:layout_height="wrap_content" 141 android:layout_marginStart="16dp" 142 android:layout_above="@id/date_group" 143 android:id="@+id/clock" 144 /> 145 146 <com.android.systemui.statusbar.AlphaOptimizedButton android:id="@+id/alarm_status" 147 android:layout_width="wrap_content" 148 android:layout_height="wrap_content" 149 android:layout_alignParentBottom="true" 150 android:layout_toEndOf="@id/date_group" 151 android:layout_marginBottom="4dp" 152 android:drawablePadding="6dp" 153 android:drawableStart="@drawable/ic_access_alarms_small" 154 android:textColor="#64ffffff" 155 android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Date" 156 android:paddingEnd="6dp" 157 android:paddingStart="6dp" 158 android:paddingTop="16dp" 159 android:paddingBottom="16dp" 160 android:background="?android:attr/selectableItemBackground" 161 android:visibility="gone" 162 /> 163 164 <include 165 android:id="@+id/qs_detail_header" 166 layout="@layout/qs_detail_header" 167 android:layout_width="match_parent" 168 android:layout_height="wrap_content" 169 android:layout_alignParentBottom="true" 170 /> 171 172 <com.android.systemui.statusbar.AlphaOptimizedImageView 173 android:id="@+id/qs_detail_header_progress" 174 android:src="@drawable/indeterminate_anim" 175 android:alpha="0" 176 android:background="@color/qs_detail_progress_track" 177 android:layout_width="match_parent" 178 android:layout_height="wrap_content" 179 android:layout_alignParentBottom="true" 180 /> 181 182 <TextView 183 android:id="@+id/header_debug_info" 184 android:visibility="invisible" 185 android:layout_width="wrap_content" 186 android:layout_height="wrap_content" 187 android:layout_gravity="center_vertical" 188 android:fontFamily="sans-serif-condensed" 189 android:textSize="11dp" 190 android:textStyle="bold" 191 android:textColor="#00A040" 192 android:padding="2dp" 193 /> 194 195</com.android.systemui.statusbar.phone.StatusBarHeaderView> 196