1<?xml version="1.0" encoding="utf-8"?>
2<!--
3     Copyright (C) 2015 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<androidx.appcompat.widget.AlertDialogLayout
19    xmlns:android="http://schemas.android.com/apk/res/android"
20    android:id="@+id/parentPanel"
21    android:layout_width="match_parent"
22    android:layout_height="wrap_content"
23    android:gravity="start|left|top"
24    android:orientation="vertical">
25
26    <include layout="@layout/abc_alert_dialog_title_material"/>
27
28    <FrameLayout
29        android:id="@+id/contentPanel"
30        android:layout_width="match_parent"
31        android:layout_height="wrap_content"
32        android:minHeight="48dp">
33
34        <View android:id="@+id/scrollIndicatorUp"
35              android:layout_width="match_parent"
36              android:layout_height="1dp"
37              android:layout_gravity="top"
38              android:background="?attr/colorControlHighlight"
39              android:visibility="gone"/>
40
41        <androidx.core.widget.NestedScrollView
42            android:id="@+id/scrollView"
43            android:layout_width="match_parent"
44            android:layout_height="wrap_content"
45            android:clipToPadding="false">
46
47            <LinearLayout
48                android:layout_width="match_parent"
49                android:layout_height="wrap_content"
50                android:orientation="vertical">
51
52                <android.widget.Space
53                    android:id="@+id/textSpacerNoTitle"
54                    android:layout_width="match_parent"
55                    android:layout_height="@dimen/abc_dialog_padding_top_material"
56                    android:visibility="gone"/>
57
58                <TextView
59                    android:id="@android:id/message"
60                    style="@style/TextAppearance.AppCompat.Subhead"
61                    android:layout_width="match_parent"
62                    android:layout_height="wrap_content"
63                    android:paddingLeft="?attr/dialogPreferredPadding"
64                    android:paddingRight="?attr/dialogPreferredPadding"/>
65
66                <android.widget.Space
67                    android:id="@+id/textSpacerNoButtons"
68                    android:layout_width="match_parent"
69                    android:layout_height="@dimen/abc_dialog_padding_top_material"
70                    android:visibility="gone"/>
71            </LinearLayout>
72        </androidx.core.widget.NestedScrollView>
73
74        <View android:id="@+id/scrollIndicatorDown"
75              android:layout_width="match_parent"
76              android:layout_height="1dp"
77              android:layout_gravity="bottom"
78              android:background="?attr/colorControlHighlight"
79              android:visibility="gone"/>
80
81    </FrameLayout>
82
83    <FrameLayout
84        android:id="@+id/customPanel"
85        android:layout_width="match_parent"
86        android:layout_height="wrap_content"
87        android:minHeight="48dp">
88
89        <FrameLayout
90            android:id="@+id/custom"
91            android:layout_width="match_parent"
92            android:layout_height="wrap_content"/>
93    </FrameLayout>
94
95    <include layout="@layout/abc_alert_dialog_button_bar_material"
96             android:layout_width="match_parent"
97             android:layout_height="wrap_content"/>
98
99</androidx.appcompat.widget.AlertDialogLayout>