xref: /aosp_15_r20/frameworks/base/packages/SystemUI/res/layout/notification_2025_footer.xml (revision d57664e9bc4670b3ecf6748a746a57c557b6bc9e)
1<!--
2  ~ Copyright (C) 2024 The Android Open Source Project
3  ~
4  ~ Licensed under the Apache License, Version 2.0 (the "License");
5  ~ you may not use this file except in compliance with the License.
6  ~ You may obtain a copy of the License at
7  ~
8  ~      http://www.apache.org/licenses/LICENSE-2.0
9  ~
10  ~ Unless required by applicable law or agreed to in writing, software
11  ~ distributed under the License is distributed on an "AS IS" BASIS,
12  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  ~ See the License for the specific language governing permissions and
14  ~ limitations under the License
15  -->
16
17<!-- Extends Framelayout -->
18<com.android.systemui.statusbar.notification.footer.ui.view.FooterView
19    xmlns:android="http://schemas.android.com/apk/res/android"
20    xmlns:app="http://schemas.android.com/apk/res-auto"
21    android:layout_width="match_parent"
22    android:layout_height="wrap_content"
23    android:visibility="gone">
24
25    <com.android.systemui.statusbar.AlphaOptimizedFrameLayout
26        android:id="@+id/content"
27        android:layout_width="match_parent"
28        android:layout_height="wrap_content"
29        android:paddingTop="12dp">
30
31        <TextView
32            android:id="@+id/unlock_prompt_footer"
33            android:layout_width="wrap_content"
34            android:layout_height="wrap_content"
35            android:layout_gravity="center_horizontal"
36            android:drawablePadding="8dp"
37            android:gravity="center"
38            android:text="@string/unlock_to_see_notif_text"
39            android:textAppearance="?android:attr/textAppearanceButton"
40            android:visibility="gone" />
41
42        <androidx.constraintlayout.widget.ConstraintLayout
43            android:layout_width="match_parent"
44            android:layout_height="wrap_content">
45
46            <com.android.systemui.statusbar.notification.row.FooterViewButton
47                android:id="@+id/history_button"
48                style="@style/TextAppearance.NotificationFooterButtonRedesign"
49                android:layout_width="wrap_content"
50                android:layout_height="48dp"
51                android:background="@drawable/notif_footer_btn_background"
52                android:contentDescription="@string/notification_history_button_description"
53                android:drawableStart="@drawable/notif_footer_btn_history"
54                android:focusable="true"
55                app:layout_constraintStart_toStartOf="parent" />
56
57            <com.android.systemui.statusbar.notification.row.FooterViewButton
58                android:id="@+id/dismiss_text"
59                style="@style/TextAppearance.NotificationFooterButtonRedesign"
60                android:layout_width="0dp"
61                android:layout_height="48dp"
62                android:layout_marginHorizontal="8dp"
63                android:background="@drawable/notif_footer_btn_background"
64                android:contentDescription="@string/accessibility_clear_all"
65                android:focusable="true"
66                android:text="@string/clear_all_notifications_text"
67                android:ellipsize="end"
68                android:maxLines="1"
69                app:layout_constraintEnd_toStartOf="@id/settings_button"
70                app:layout_constraintStart_toEndOf="@id/history_button" />
71
72            <com.android.systemui.statusbar.notification.row.FooterViewButton
73                android:id="@+id/settings_button"
74                style="@style/TextAppearance.NotificationFooterButtonRedesign"
75                android:layout_width="wrap_content"
76                android:layout_height="48dp"
77                android:background="@drawable/notif_footer_btn_background"
78                android:contentDescription="@string/notification_settings_button_description"
79                android:drawableStart="@drawable/notif_footer_btn_settings"
80                android:focusable="true"
81                app:layout_constraintEnd_toEndOf="parent" />
82        </androidx.constraintlayout.widget.ConstraintLayout>
83    </com.android.systemui.statusbar.AlphaOptimizedFrameLayout>
84</com.android.systemui.statusbar.notification.footer.ui.view.FooterView>
85