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="wrap_content" 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="@dimen/qs_footer_height" 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:singleLine="true" 48 android:textAppearance="@style/TextAppearance.QS.Status.Build" 49 android:visibility="gone" /> 50 51 <com.android.systemui.qs.PageIndicator 52 android:id="@+id/footer_page_indicator" 53 android:layout_width="wrap_content" 54 android:layout_height="match_parent" 55 android:layout_gravity="center_vertical" 56 android:tint="?attr/shadeActive" 57 android:visibility="gone" /> 58 59 <FrameLayout 60 android:layout_width="0dp" 61 android:layout_height="match_parent" 62 android:layout_weight="1"> 63 <com.android.systemui.statusbar.AlphaOptimizedImageView 64 android:id="@android:id/edit" 65 android:layout_width="@dimen/qs_footer_action_button_size" 66 android:layout_height="@dimen/qs_footer_action_button_size" 67 android:layout_gravity="center_vertical|end" 68 android:background="@drawable/qs_footer_edit_circle" 69 android:clickable="true" 70 android:contentDescription="@string/accessibility_quick_settings_edit" 71 android:focusable="true" 72 android:padding="@dimen/qs_footer_icon_padding" 73 android:src="@*android:drawable/ic_mode_edit" 74 android:tint="?attr/onSurfaceVariant" /> 75 </FrameLayout> 76 77 </LinearLayout> 78 79</com.android.systemui.qs.QSFooterView> 80