1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 ~ Copyright (C) 2021 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<androidx.constraintlayout.motion.widget.MotionLayout 18 xmlns:android="http://schemas.android.com/apk/res/android" 19 xmlns:app="http://schemas.android.com/apk/res-auto" 20 android:id="@+id/split_shade_status_bar" 21 android:layout_width="match_parent" 22 android:layout_height="wrap_content" 23 android:minHeight="@dimen/split_shade_header_min_height" 24 android:clickable="false" 25 android:focusable="true" 26 android:paddingLeft="@dimen/qs_panel_padding" 27 android:paddingRight="@dimen/qs_panel_padding" 28 android:visibility="gone" 29 android:theme="@style/Theme.SystemUI.QuickSettings.Header" 30 app:layoutDescription="@xml/combined_qs_header_scene"> 31 32 <androidx.constraintlayout.widget.Guideline 33 android:layout_width="wrap_content" 34 android:layout_height="wrap_content" 35 android:id="@+id/center" 36 app:layout_constraintGuide_percent="0.5" 37 android:orientation="vertical" /> 38 39 <com.android.systemui.statusbar.policy.Clock 40 android:id="@+id/clock" 41 android:layout_width="wrap_content" 42 android:layout_height="0dp" 43 android:gravity="start|center_vertical" 44 android:paddingStart="@dimen/status_bar_left_clock_starting_padding" 45 android:paddingEnd="@dimen/status_bar_left_clock_end_padding" 46 android:singleLine="true" 47 android:textAppearance="@style/TextAppearance.QS.Status" 48 /> 49 50 <com.android.systemui.statusbar.policy.DateView 51 android:id="@+id/date" 52 android:layout_width="wrap_content" 53 android:layout_height="0dp" 54 android:layout_gravity="start|center_vertical" 55 android:gravity="center_vertical" 56 android:singleLine="true" 57 android:textAppearance="@style/TextAppearance.QS.Status" 58 app:datePattern="@string/abbrev_wday_month_day_no_year_alarm" 59 /> 60 61 <include 62 android:id="@+id/carrier_group" 63 layout="@layout/qs_carrier_group" 64 app:layout_constraintHeight_min="@dimen/split_shade_header_min_height" 65 android:minHeight="@dimen/split_shade_header_min_height" 66 app:layout_constraintWidth_min="48dp" 67 android:layout_width="0dp" 68 android:layout_height="0dp" 69 app:layout_constrainedWidth="true" 70 android:layout_gravity="end|center_vertical" 71 android:layout_marginStart="8dp" 72 app:layout_constraintStart_toEndOf="@id/date" 73 app:layout_constraintEnd_toStartOf="@id/statusIcons" 74 app:layout_constraintTop_toTopOf="@id/clock" 75 app:layout_constraintBottom_toBottomOf="parent" 76 app:layout_constraintHorizontal_bias="1" 77 /> 78 79 <com.android.systemui.statusbar.phone.StatusIconContainer 80 android:id="@+id/statusIcons" 81 app:layout_constraintHeight_min="@dimen/split_shade_header_min_height" 82 android:paddingEnd="@dimen/signal_cluster_battery_padding" 83 android:layout_width="wrap_content" 84 android:layout_height="48dp" 85 app:layout_constraintStart_toEndOf="@id/carrier_group" 86 app:layout_constraintEnd_toStartOf="@id/batteryRemainingIcon" 87 app:layout_constraintTop_toTopOf="@id/clock" 88 app:layout_constraintBottom_toBottomOf="parent" 89 app:layout_constraintHorizontal_bias="1" 90 /> 91 92 <com.android.systemui.battery.BatteryMeterView 93 android:id="@+id/batteryRemainingIcon" 94 android:layout_width="wrap_content" 95 android:layout_height="48dp" 96 app:layout_constraintHeight_min="@dimen/split_shade_header_min_height" 97 app:textAppearance="@style/TextAppearance.QS.Status" 98 app:layout_constraintStart_toEndOf="@id/statusIcons" 99 app:layout_constraintEnd_toEndOf="parent" 100 app:layout_constraintTop_toTopOf="@id/clock" 101 app:layout_constraintBottom_toBottomOf="parent" 102 /> 103 104</androidx.constraintlayout.motion.widget.MotionLayout>