1<?xml version="1.0" encoding="utf-8"?>
2<!--
3** Copyright 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
18<!-- Extends FrameLayout -->
19<com.android.systemui.qs.QSFooterView xmlns:android="http://schemas.android.com/apk/res/android"
20    android:id="@+id/qs_footer"
21    android:layout_width="match_parent"
22    android:layout_height="@dimen/qs_footer_height"
23    android:layout_marginStart="@dimen/qs_footer_margin"
24    android:layout_marginEnd="@dimen/qs_footer_margin"
25    android:layout_marginBottom="@dimen/qs_footers_margin_bottom"
26    android:background="@android:color/transparent"
27    android:baselineAligned="false"
28    android:clickable="false"
29    android:clipChildren="false"
30    android:clipToPadding="false">
31
32        <LinearLayout
33            android:layout_width="match_parent"
34            android:layout_height="match_parent"
35            android:layout_gravity="center_vertical">
36
37            <TextView
38                android:id="@+id/build"
39                android:layout_width="0dp"
40                android:layout_height="match_parent"
41                android:paddingEnd="4dp"
42                android:layout_weight="1"
43                android:clickable="true"
44                android:ellipsize="marquee"
45                android:focusable="true"
46                android:gravity="center_vertical"
47                android:textDirection="locale"
48                android:textAlignment="viewStart"
49                android:singleLine="true"
50                android:textAppearance="@style/TextAppearance.QS.Status.Build"
51                android:visibility="gone" />
52
53            <com.android.systemui.qs.PageIndicator
54                android:id="@+id/footer_page_indicator"
55                android:layout_width="wrap_content"
56                android:layout_height="match_parent"
57                android:layout_gravity="center_vertical"
58                android:focusable="true"
59                android:importantForAccessibility="no"
60                android:tint="?attr/shadeActive"
61                android:visibility="gone" />
62
63            <FrameLayout
64                android:layout_width="0dp"
65                android:layout_height="match_parent"
66                android:layout_weight="1">
67                <com.android.systemui.statusbar.AlphaOptimizedImageView
68                    android:id="@android:id/edit"
69                    android:layout_width="@dimen/qs_footer_action_button_size"
70                    android:layout_height="@dimen/qs_footer_action_button_size"
71                    android:layout_gravity="center_vertical|end"
72                    android:background="@drawable/qs_footer_edit_circle"
73                    android:clickable="true"
74                    android:contentDescription="@string/accessibility_quick_settings_edit"
75                    android:focusable="true"
76                    android:padding="@dimen/qs_footer_icon_padding"
77                    android:src="@*android:drawable/ic_mode_edit"
78                    android:tint="?attr/onSurfaceVariant" />
79            </FrameLayout>
80
81        </LinearLayout>
82
83</com.android.systemui.qs.QSFooterView>
84