blob: 4e0cbe093c499aefdcd4aa8696298e222f3bb650 [file] [log] [blame]
Jason Monkc34befb2015-10-07 16:40:02 -04001<?xml version="1.0" encoding="utf-8"?>
2<!--
Jason Monk94a1bf62015-10-20 08:43:36 -07003** Copyright 2012, The Android Open Source Project
Jason Monkc34befb2015-10-07 16:40:02 -04004**
Anthony Chen3cb3ad92016-12-01 10:58:47 -08005** 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
Jason Monkc34befb2015-10-07 16:40:02 -04008**
Anthony Chen3cb3ad92016-12-01 10:58:47 -08009** http://www.apache.org/licenses/LICENSE-2.0
Jason Monkc34befb2015-10-07 16:40:02 -040010**
Anthony Chen3cb3ad92016-12-01 10:58:47 -080011** 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
Jason Monkc34befb2015-10-07 16:40:02 -040015** limitations under the License.
16-->
17
18<!-- Extends RelativeLayout -->
Jason Monke5b770e2017-03-03 21:49:29 -050019<com.android.systemui.qs.QuickStatusBarHeader
Jason Monkc34befb2015-10-07 16:40:02 -040020 xmlns:android="http://schemas.android.com/apk/res/android"
Jason Monkc34befb2015-10-07 16:40:02 -040021 android:id="@+id/header"
Jason Monkcd4e382b2016-05-04 16:08:08 -040022 android:layout_width="match_parent"
Evan Laird19bf52c2018-01-24 19:54:58 -050023 android:layout_height="@*android:dimen/quick_qs_total_height"
Jason Monkc34befb2015-10-07 16:40:02 -040024 android:layout_gravity="@integer/notification_panel_layout_gravity"
Amin Shaikhff815c22018-03-29 14:38:59 -040025 android:background="@android:color/transparent"
Jason Monkc34befb2015-10-07 16:40:02 -040026 android:baselineAligned="false"
Fabian Kozynski1c36a5c2018-12-12 13:52:47 -050027 android:clickable="true"
Jason Monk32508852017-01-18 09:17:13 -050028 android:clipChildren="false"
29 android:clipToPadding="false"
30 android:paddingTop="0dp"
31 android:paddingEnd="0dp"
Evan Laird39254d42018-01-18 16:05:30 -050032 android:paddingStart="0dp"
Fabian Kozynski1c36a5c2018-12-12 13:52:47 -050033 android:elevation="4dp"
34 android:importantForAccessibility="no" >
Jason Monkc34befb2015-10-07 16:40:02 -040035
Anthony Chen54daefe2017-04-07 17:19:54 -070036 <include layout="@layout/quick_status_bar_header_system_icons" />
Rohan Shahd3cf7562018-02-23 11:12:28 -080037
38 <!-- Status icons within the panel itself (and not in the top-most status bar) -->
Evan Laird39254d42018-01-18 16:05:30 -050039 <include layout="@layout/quick_qs_status_icons" />
Jason Monkc34befb2015-10-07 16:40:02 -040040
Rohan Shahd3cf7562018-02-23 11:12:28 -080041 <!-- Layout containing tooltips, alarm text, etc. -->
42 <include layout="@layout/quick_settings_header_info" />
43
Jason Monkdeba7a42015-12-08 16:14:10 -050044 <com.android.systemui.qs.QuickQSPanel
45 android:id="@+id/quick_qs_panel"
Jason Monkdeba7a42015-12-08 16:14:10 -050046 android:layout_width="match_parent"
Jason Monk7b3d4e42017-05-30 12:47:10 -040047 android:layout_height="48dp"
Evan Laird39254d42018-01-18 16:05:30 -050048 android:layout_below="@id/quick_qs_status_icons"
Amin Shaikhd620def2018-02-27 16:52:53 -050049 android:layout_marginStart="@dimen/qs_header_tile_margin_horizontal"
50 android:layout_marginEnd="@dimen/qs_header_tile_margin_horizontal"
Jason Monk32508852017-01-18 09:17:13 -050051 android:accessibilityTraversalAfter="@+id/date_time_group"
52 android:accessibilityTraversalBefore="@id/expand_indicator"
Jason Monkdeba7a42015-12-08 16:14:10 -050053 android:clipChildren="false"
Julia Reynolds20aef8a2016-05-04 16:44:08 -040054 android:clipToPadding="false"
Julia Reynolds20aef8a2016-05-04 16:44:08 -040055 android:focusable="true"
Jason Monk7b3d4e42017-05-30 12:47:10 -040056 android:importantForAccessibility="yes" />
Jason Monkdeba7a42015-12-08 16:14:10 -050057
Jason Monkc34befb2015-10-07 16:40:02 -040058 <com.android.systemui.statusbar.AlphaOptimizedImageView
59 android:id="@+id/qs_detail_header_progress"
Jason Monkc34befb2015-10-07 16:40:02 -040060 android:layout_width="match_parent"
61 android:layout_height="wrap_content"
62 android:layout_alignParentBottom="true"
Jason Monk32508852017-01-18 09:17:13 -050063 android:alpha="0"
64 android:background="@color/qs_detail_progress_track"
Anthony Chen3cb3ad92016-12-01 10:58:47 -080065 android:src="@drawable/indeterminate_anim"/>
Jason Monkc34befb2015-10-07 16:40:02 -040066
67 <TextView
68 android:id="@+id/header_debug_info"
Jason Monkc34befb2015-10-07 16:40:02 -040069 android:layout_width="wrap_content"
70 android:layout_height="wrap_content"
71 android:layout_gravity="center_vertical"
72 android:fontFamily="sans-serif-condensed"
Jason Monk32508852017-01-18 09:17:13 -050073 android:padding="2dp"
74 android:textColor="#00A040"
Jason Monkc34befb2015-10-07 16:40:02 -040075 android:textSize="11dp"
76 android:textStyle="bold"
Anthony Chen3cb3ad92016-12-01 10:58:47 -080077 android:visibility="invisible"/>
Jason Monkc34befb2015-10-07 16:40:02 -040078
Jason Monke5b770e2017-03-03 21:49:29 -050079</com.android.systemui.qs.QuickStatusBarHeader>