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.qs.QSFooter
20    xmlns:android="http://schemas.android.com/apk/res/android"
21    android:id="@+id/header"
22    android:layout_width="match_parent"
23    android:layout_height="48dp"
24    android:elevation="4dp"
25    android:baselineAligned="false"
26    android:clickable="false"
27    android:clipChildren="false"
28    android:clipToPadding="false"
29    android:paddingTop="0dp"
30    android:background="#00000000"
31    android:gravity="center_vertical"
32    android:orientation="horizontal">
33
34    <include
35        android:id="@+id/date_time_alarm_group"
36        layout="@layout/status_bar_alarm_group"
37        android:layout_marginStart="16dp"
38        android:layout_marginEnd="8dp"
39        android:layout_width="wrap_content"
40        android:layout_height="match_parent" />
41
42    <LinearLayout
43        android:layout_width="match_parent"
44        android:layout_height="wrap_content"
45        android:layout_marginStart="16dp"
46        android:layout_marginEnd="8dp"
47        android:gravity="end">
48
49        <com.android.systemui.statusbar.phone.MultiUserSwitch
50            android:id="@+id/multi_user_switch"
51            android:layout_width="48dp"
52            android:layout_height="48dp"
53            android:layout_alignParentEnd="true"
54            android:background="@drawable/ripple_drawable"
55            android:focusable="true">
56
57            <ImageView
58                android:id="@+id/multi_user_avatar"
59                android:layout_width="@dimen/multi_user_avatar_expanded_size"
60                android:layout_height="@dimen/multi_user_avatar_expanded_size"
61                android:layout_gravity="center"
62                android:scaleType="centerInside"/>
63        </com.android.systemui.statusbar.phone.MultiUserSwitch>
64
65        <com.android.systemui.statusbar.AlphaOptimizedImageView
66            android:id="@android:id/edit"
67            android:layout_width="48dp"
68            android:layout_height="48dp"
69            android:background="?android:attr/selectableItemBackgroundBorderless"
70            android:clickable="true"
71            android:clipToPadding="false"
72            android:contentDescription="@string/accessibility_quick_settings_edit"
73            android:focusable="true"
74            android:padding="16dp"
75            android:src="@drawable/ic_mode_edit"
76            android:tint="?android:attr/colorForeground"/>
77
78        <com.android.systemui.statusbar.AlphaOptimizedFrameLayout
79            android:id="@+id/settings_button_container"
80            android:layout_width="48dp"
81            android:layout_height="48dp"
82            android:clipChildren="false"
83            android:clipToPadding="false">
84
85            <com.android.systemui.statusbar.phone.SettingsButton
86                android:id="@+id/settings_button"
87                style="@android:style/Widget.Material.Button.Borderless"
88                android:layout_width="match_parent"
89                android:layout_height="match_parent"
90                android:background="@drawable/ripple_drawable"
91                android:contentDescription="@string/accessibility_quick_settings_settings"
92                android:src="@drawable/ic_settings_16dp"
93                android:tint="?android:attr/colorForeground"/>
94
95            <com.android.systemui.statusbar.AlphaOptimizedImageView
96                android:id="@+id/tuner_icon"
97                android:layout_width="match_parent"
98                android:layout_height="match_parent"
99                android:paddingStart="36dp"
100                android:paddingEnd="4dp"
101                android:src="@drawable/tuner"
102                android:tint="?android:attr/textColorTertiary"
103                android:visibility="invisible"/>
104
105        </com.android.systemui.statusbar.AlphaOptimizedFrameLayout>
106
107        <com.android.systemui.statusbar.phone.ExpandableIndicator
108            android:id="@+id/expand_indicator"
109            android:layout_width="48dp"
110            android:layout_height="48dp"
111            android:clipToPadding="false"
112            android:clickable="true"
113            android:focusable="true"
114            android:background="?android:attr/selectableItemBackgroundBorderless"
115            android:contentDescription="@string/accessibility_quick_settings_expand"
116            android:padding="14dp" />
117    </LinearLayout>
118
119    <include layout="@layout/qs_divider"
120        android:layout_width="match_parent"
121        android:layout_height="1dp"
122        android:layout_gravity="bottom" />
123
124</com.android.systemui.qs.QSFooter>
125