• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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:minHeight="48dp"
35        android:paddingStart="@dimen/dialog_side_padding"
36        android:paddingEnd="@dimen/dialog_side_padding"
37    >
38
39        <ScrollView
40            android:id="@*android:id/scrollView"
41            android:layout_width="match_parent"
42            android:layout_height="wrap_content"
43            android:clipToPadding="false">
44
45            <LinearLayout
46                android:layout_width="match_parent"
47                android:layout_height="wrap_content"
48                android:orientation="vertical">
49
50                <Space
51                    android:id="@*android:id/textSpacerNoTitle"
52                    android:visibility="gone"
53                    android:layout_width="match_parent"
54                    android:layout_height="0dp" />
55
56                <TextView
57                    android:id="@*android:id/message"
58                    android:layout_width="match_parent"
59                    android:layout_height="wrap_content"
60                    style="@style/TextAppearance.Dialog.Body.Message" />
61
62                <Space
63                    android:id="@*android:id/textSpacerNoButtons"
64                    android:visibility="gone"
65                    android:layout_width="match_parent"
66                    android:layout_height="6dp" />
67            </LinearLayout>
68        </ScrollView>
69    </FrameLayout>
70
71    <FrameLayout
72        android:id="@*android:id/customPanel"
73        android:layout_width="match_parent"
74        android:layout_height="wrap_content"
75        android:minHeight="48dp"
76        android:paddingStart="@dimen/dialog_side_padding"
77        android:paddingEnd="@dimen/dialog_side_padding"
78    >
79
80        <FrameLayout
81            android:id="@*android:id/custom"
82            android:layout_width="match_parent"
83            android:layout_height="wrap_content" />
84    </FrameLayout>
85
86    <FrameLayout
87        android:layout_width="match_parent"
88        android:layout_height="wrap_content"
89        android:paddingStart="@dimen/dialog_side_padding"
90        android:paddingEnd="@dimen/dialog_side_padding">
91        <include
92            android:layout_width="match_parent"
93            android:layout_height="wrap_content"
94            layout="@layout/alert_dialog_button_bar_systemui" />
95    </FrameLayout>
96</com.android.internal.widget.AlertDialogLayout>