xref: /aosp_15_r20/frameworks/base/packages/SystemUI/res/layout/alert_dialog_systemui.xml (revision d57664e9bc4670b3ecf6748a746a57c557b6bc9e)
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  ~ Copyright (C) 2022 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<com.android.internal.widget.AlertDialogLayout
19    xmlns:android="http://schemas.android.com/apk/res/android"
20    android:id="@*android:id/parentPanel"
21    android:layout_width="match_parent"
22    android:layout_height="wrap_content"
23    android:gravity="center_horizontal|top"
24    android:orientation="vertical"
25    android:paddingTop="@dimen/dialog_top_padding"
26>
27
28    <include layout="@layout/alert_dialog_title_systemui" />
29
30    <FrameLayout
31        android:id="@*android:id/contentPanel"
32        android:layout_width="match_parent"
33        android:layout_height="wrap_content"
34        android:paddingStart="@dimen/dialog_side_padding"
35        android:paddingEnd="@dimen/dialog_side_padding"
36    >
37
38        <ScrollView
39            android:id="@*android:id/scrollView"
40            android:layout_width="match_parent"
41            android:layout_height="wrap_content"
42            android:clipToPadding="false">
43
44            <LinearLayout
45                android:layout_width="match_parent"
46                android:layout_height="wrap_content"
47                android:orientation="vertical">
48
49                <Space
50                    android:id="@*android:id/textSpacerNoTitle"
51                    android:visibility="gone"
52                    android:layout_width="match_parent"
53                    android:layout_height="0dp" />
54
55                <TextView
56                    android:id="@*android:id/message"
57                    android:layout_width="match_parent"
58                    android:layout_height="wrap_content"
59                    style="@style/TextAppearance.Dialog.Body.Message" />
60
61                <Space
62                    android:id="@*android:id/textSpacerNoButtons"
63                    android:visibility="gone"
64                    android:layout_width="match_parent"
65                    android:layout_height="6dp" />
66            </LinearLayout>
67        </ScrollView>
68    </FrameLayout>
69
70    <FrameLayout
71        android:id="@*android:id/customPanel"
72        android:layout_width="match_parent"
73        android:layout_height="wrap_content"
74        android:minHeight="48dp"
75        android:paddingStart="@dimen/dialog_side_padding"
76        android:paddingEnd="@dimen/dialog_side_padding"
77    >
78
79        <FrameLayout
80            android:id="@*android:id/custom"
81            android:layout_width="match_parent"
82            android:layout_height="wrap_content" />
83    </FrameLayout>
84
85    <FrameLayout
86        android:layout_width="match_parent"
87        android:layout_height="wrap_content"
88        android:paddingStart="@dimen/dialog_side_padding"
89        android:paddingEnd="@dimen/dialog_side_padding">
90        <include
91            android:layout_width="match_parent"
92            android:layout_height="wrap_content"
93            layout="@layout/alert_dialog_button_bar_systemui" />
94    </FrameLayout>
95</com.android.internal.widget.AlertDialogLayout>