| <?xml version="1.0" encoding="utf-8"?> |
| <!-- Copyright (C) 2017 The Android Open Source Project |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| <LinearLayout |
| xmlns:android="http://schemas.android.com/apk/res/android" |
| xmlns:systemui="http://schemas.android.com/apk/res-auto" |
| android:id="@+id/quick_qs_status_icons" |
| android:layout_width="match_parent" |
| android:layout_height="@*android:dimen/quick_qs_offset_height" |
| android:clipChildren="false" |
| android:clipToPadding="false" |
| android:minHeight="@dimen/qs_header_row_min_height" |
| android:clickable="false" |
| android:focusable="true" |
| android:theme="@style/Theme.SystemUI.QuickSettings.Header"> |
| |
| <LinearLayout |
| android:id="@+id/clock_container" |
| android:layout_width="wrap_content" |
| android:layout_height="match_parent" |
| android:orientation="horizontal" |
| android:layout_gravity="center_vertical|start" |
| android:gravity="center_vertical|start" |
| > |
| |
| <com.android.systemui.statusbar.policy.Clock |
| android:id="@+id/clock" |
| android:layout_width="wrap_content" |
| android:layout_height="match_parent" |
| android:minHeight="@dimen/qs_header_row_min_height" |
| android:gravity="center_vertical|start" |
| android:paddingStart="@dimen/status_bar_left_clock_starting_padding" |
| android:paddingEnd="@dimen/status_bar_left_clock_end_padding" |
| android:singleLine="true" |
| android:textAppearance="@style/TextAppearance.QS.Status" /> |
| |
| <com.android.systemui.statusbar.policy.VariableDateView |
| android:id="@+id/date_clock" |
| android:layout_width="wrap_content" |
| android:layout_height="match_parent" |
| android:layout_marginStart="@dimen/status_bar_left_clock_end_padding" |
| android:gravity="center_vertical|start" |
| android:singleLine="true" |
| android:textAppearance="@style/TextAppearance.QS.Status" |
| systemui:longDatePattern="@string/abbrev_wday_month_day_no_year_alarm" |
| systemui:shortDatePattern="@string/abbrev_month_day_no_year" |
| /> |
| </LinearLayout> |
| |
| <include layout="@layout/qs_carrier_group" |
| android:id="@+id/carrier_group" |
| android:layout_width="0dp" |
| android:layout_height="match_parent" |
| android:layout_weight="1" |
| android:minHeight="@dimen/qs_header_row_min_height" |
| android:minWidth="48dp" |
| android:layout_marginStart="8dp" |
| android:layout_gravity="end|center_vertical" |
| android:focusable="false"/> |
| |
| <View |
| android:id="@+id/separator" |
| android:layout_width="0dp" |
| android:layout_height="match_parent" |
| android:layout_gravity="center" |
| android:layout_marginStart="8dp" |
| android:layout_marginEnd="8dp" |
| android:visibility="gone" |
| /> |
| |
| <FrameLayout |
| android:id="@+id/rightLayout" |
| android:layout_width="wrap_content" |
| android:layout_height="match_parent" |
| android:gravity="end" |
| > |
| <LinearLayout |
| android:layout_width="wrap_content" |
| android:layout_height="match_parent" |
| android:layout_gravity="center_vertical|end" |
| > |
| <com.android.systemui.statusbar.phone.StatusIconContainer |
| android:id="@+id/statusIcons" |
| android:layout_width="wrap_content" |
| android:layout_height="match_parent" |
| android:paddingEnd="@dimen/signal_cluster_battery_padding" /> |
| |
| <com.android.systemui.battery.BatteryMeterView |
| android:id="@+id/batteryRemainingIcon" |
| android:layout_height="match_parent" |
| android:layout_width="0dp" |
| android:layout_weight="1" |
| systemui:textAppearance="@style/TextAppearance.QS.Status" |
| android:paddingEnd="2dp" /> |
| |
| </LinearLayout> |
| </FrameLayout> |
| |
| </LinearLayout> |