blob: 67e31ac7f9dab0b172766cf858da0acd0e829660 [file] [log] [blame]
Jason Monke5b770e2017-03-03 21:49:29 -05001<?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
Anthony Chen54daefe2017-04-07 17:19:54 -070018<!-- Extends FrameLayout -->
19<com.android.systemui.qs.QSFooterImpl
Jason Monke5b770e2017-03-03 21:49:29 -050020 xmlns:android="http://schemas.android.com/apk/res/android"
Anthony Chen54daefe2017-04-07 17:19:54 -070021 android:id="@+id/qs_footer"
Jason Monke5b770e2017-03-03 21:49:29 -050022 android:layout_width="match_parent"
Amin Shaikhc225e322018-01-31 18:08:34 -050023 android:layout_height="@dimen/qs_footer_height"
Evan Laird39254d42018-01-18 16:05:30 -050024 android:elevation="4dp"
Amin Shaikh30330992018-03-26 17:50:42 -040025 android:background="@android:color/transparent"
Jason Monke5b770e2017-03-03 21:49:29 -050026 android:baselineAligned="false"
27 android:clickable="false"
28 android:clipChildren="false"
Amin Shaikhacf322d2018-01-31 17:04:56 -050029 android:clipToPadding="false">
30
31 <View
32 android:id="@+id/qs_footer_divider"
33 android:layout_width="match_parent"
34 android:layout_height="1dp"
35 android:layout_gravity="top"
36 android:background="?android:attr/dividerHorizontal"/>
Jason Monke5b770e2017-03-03 21:49:29 -050037
Jason Monk6ca97322017-05-09 14:43:20 -040038 <LinearLayout
39 android:layout_width="match_parent"
Evan Laird00e43c42018-01-22 20:25:45 -050040 android:layout_height="match_parent"
Amin Shaikhacf322d2018-01-31 17:04:56 -050041 android:layout_gravity="center_vertical"
Evan Laird00e43c42018-01-22 20:25:45 -050042 android:gravity="end" >
Jason Monke5b770e2017-03-03 21:49:29 -050043
Rohan Shah3090e792018-04-12 00:01:00 -040044 <LinearLayout
Fabian Kozynski1823f112019-01-18 11:43:29 -050045 android:id="@+id/qs_mobile"
Evan Laird2cf56822017-12-18 11:22:39 -050046 android:layout_width="0dp"
Rohan Shah3090e792018-04-12 00:01:00 -040047 android:layout_height="match_parent"
Evan Laird2cf56822017-12-18 11:22:39 -050048 android:layout_weight="1"
Rohan Shah3090e792018-04-12 00:01:00 -040049 android:gravity="center_vertical|start"
Fabian Kozynski1823f112019-01-18 11:43:29 -050050 android:orientation="horizontal"
51 android:layout_marginEnd="32dp">
Rohan Shah3090e792018-04-12 00:01:00 -040052
53 <include
Fabian Kozynski1823f112019-01-18 11:43:29 -050054 layout="@layout/qs_footer_carrier"
55 android:id="@+id/carrier1" />
56
57 <View
58 android:id="@+id/qs_carrier_divider"
59 android:layout_width="2dp"
60 android:layout_height="match_parent"
61 android:layout_marginTop="15dp"
62 android:layout_marginBottom="15dp"
63 android:background="?android:attr/dividerVertical"
Rohan Shah3090e792018-04-12 00:01:00 -040064 android:visibility="gone" />
65
Fabian Kozynski1823f112019-01-18 11:43:29 -050066 <include
67 layout="@layout/qs_footer_carrier"
68 android:id="@+id/carrier2"
69 android:visibility="gone"/>
Rohan Shah3090e792018-04-12 00:01:00 -040070
71 </LinearLayout>
72
73 <com.android.systemui.qs.PageIndicator
74 android:id="@+id/footer_page_indicator"
75 android:layout_width="wrap_content"
76 android:layout_height="match_parent"
77 android:layout_gravity="center_vertical"
78 android:visibility="gone" />
Amin Shaikhd620def2018-02-27 16:52:53 -050079
80 <com.android.keyguard.AlphaOptimizedLinearLayout
81 android:id="@+id/qs_footer_actions_container"
Rohan Shah3090e792018-04-12 00:01:00 -040082 android:layout_width="@integer/qs_footer_actions_width"
Amin Shaikhd620def2018-02-27 16:52:53 -050083 android:layout_height="match_parent"
Rohan Shah3090e792018-04-12 00:01:00 -040084 android:layout_weight="@integer/qs_footer_actions_weight"
Amin Shaikh4f3f5522018-02-13 17:55:14 -050085 android:gravity="center_vertical|end" >
Evan Laird00e43c42018-01-22 20:25:45 -050086 <com.android.systemui.statusbar.phone.MultiUserSwitch
87 android:id="@+id/multi_user_switch"
88 android:layout_width="48dp"
89 android:layout_height="48dp"
90 android:layout_alignParentEnd="true"
Jason Monk6ca97322017-05-09 14:43:20 -040091 android:background="@drawable/ripple_drawable"
Evan Laird00e43c42018-01-22 20:25:45 -050092 android:focusable="true">
93
94 <ImageView
95 android:id="@+id/multi_user_avatar"
96 android:layout_width="@dimen/multi_user_avatar_expanded_size"
97 android:layout_height="@dimen/multi_user_avatar_expanded_size"
98 android:layout_gravity="center"
99 android:scaleType="centerInside"/>
100 </com.android.systemui.statusbar.phone.MultiUserSwitch>
Jason Monk6ca97322017-05-09 14:43:20 -0400101
102 <com.android.systemui.statusbar.AlphaOptimizedImageView
Evan Laird00e43c42018-01-22 20:25:45 -0500103 android:id="@android:id/edit"
104 android:layout_width="48dp"
105 android:layout_height="48dp"
106 android:background="?android:attr/selectableItemBackgroundBorderless"
107 android:clickable="true"
108 android:clipToPadding="false"
109 android:contentDescription="@string/accessibility_quick_settings_edit"
110 android:focusable="true"
Amin Shaikh4f3f5522018-02-13 17:55:14 -0500111 android:padding="15dp"
Amin Shaikh10f363b2019-01-24 17:59:49 -0500112 android:src="@*android:drawable/ic_mode_edit"
Evan Laird00e43c42018-01-22 20:25:45 -0500113 android:tint="?android:attr/colorForeground"/>
Jason Monk6ca97322017-05-09 14:43:20 -0400114
Evan Laird00e43c42018-01-22 20:25:45 -0500115 <com.android.systemui.statusbar.AlphaOptimizedFrameLayout
116 android:id="@+id/settings_button_container"
117 android:layout_width="48dp"
118 android:layout_height="48dp"
119 android:clipChildren="false"
120 android:clipToPadding="false">
121
122 <com.android.systemui.statusbar.phone.SettingsButton
123 android:id="@+id/settings_button"
124 style="@android:style/Widget.Material.Button.Borderless"
125 android:layout_width="match_parent"
126 android:layout_height="match_parent"
127 android:background="@drawable/ripple_drawable"
128 android:contentDescription="@string/accessibility_quick_settings_settings"
Amin Shaikh4f3f5522018-02-13 17:55:14 -0500129 android:padding="15dp"
Evan Laird00e43c42018-01-22 20:25:45 -0500130 android:src="@drawable/ic_settings_16dp"
131 android:tint="?android:attr/colorForeground"/>
132
133 <com.android.systemui.statusbar.AlphaOptimizedImageView
134 android:id="@+id/tuner_icon"
135 android:layout_width="match_parent"
136 android:layout_height="match_parent"
137 android:paddingStart="36dp"
138 android:paddingEnd="4dp"
139 android:src="@drawable/tuner"
140 android:tint="?android:attr/textColorTertiary"
141 android:visibility="invisible"/>
142
143 </com.android.systemui.statusbar.AlphaOptimizedFrameLayout>
Amin Shaikh4f3f5522018-02-13 17:55:14 -0500144 </com.android.keyguard.AlphaOptimizedLinearLayout>
Jason Monk6ca97322017-05-09 14:43:20 -0400145 </LinearLayout>
Jason Monke5b770e2017-03-03 21:49:29 -0500146
Amin Shaikhd620def2018-02-27 16:52:53 -0500147 <View
148 android:id="@+id/qs_drag_handle_view"
149 android:layout_width="24dp"
150 android:layout_height="4dp"
Amin Shaikhb9176ea2018-03-02 11:29:07 -0500151 android:layout_marginBottom="16dp"
152 android:layout_gravity="center_horizontal|bottom"
Amin Shaikhd620def2018-02-27 16:52:53 -0500153 android:background="@drawable/qs_footer_drag_handle" />
154
Anthony Chen54daefe2017-04-07 17:19:54 -0700155</com.android.systemui.qs.QSFooterImpl>