Android O MR1 SDK.
[android_tools.git] / sdk / platforms / android-27 / data / res / layout / alert_dialog_material.xml
blob178505c264a46fe566c309a3db304fe6007a3938
1 <?xml version="1.0" encoding="utf-8"?>
2 <!--
3      Copyright (C) 2014 The Android Open Source Project
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
9           http://www.apache.org/licenses/LICENSE-2.0
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 -->
18 <com.android.internal.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|top"
24     android:orientation="vertical">
26     <include layout="@layout/alert_dialog_title_material" />
28     <FrameLayout
29         android:id="@+id/contentPanel"
30         android:layout_width="match_parent"
31         android:layout_height="wrap_content"
32         android:minHeight="48dp">
34         <ScrollView
35             android:id="@+id/scrollView"
36             android:layout_width="match_parent"
37             android:layout_height="wrap_content"
38             android:clipToPadding="false">
40             <LinearLayout
41                 android:layout_width="match_parent"
42                 android:layout_height="wrap_content"
43                 android:orientation="vertical">
45                 <Space
46                     android:id="@+id/textSpacerNoTitle"
47                     android:visibility="gone"
48                     android:layout_width="match_parent"
49                     android:layout_height="@dimen/dialog_padding_top_material" />
51                 <TextView
52                     android:id="@+id/message"
53                     android:layout_width="match_parent"
54                     android:layout_height="wrap_content"
55                     android:paddingEnd="?attr/dialogPreferredPadding"
56                     android:paddingStart="?attr/dialogPreferredPadding"
57                     style="@style/TextAppearance.Material.Subhead" />
59                 <Space
60                     android:id="@+id/textSpacerNoButtons"
61                     android:visibility="gone"
62                     android:layout_width="match_parent"
63                     android:layout_height="@dimen/dialog_padding_top_material" />
64             </LinearLayout>
65         </ScrollView>
66     </FrameLayout>
68     <FrameLayout
69         android:id="@+id/customPanel"
70         android:layout_width="match_parent"
71         android:layout_height="wrap_content"
72         android:minHeight="48dp">
74         <FrameLayout
75             android:id="@+id/custom"
76             android:layout_width="match_parent"
77             android:layout_height="wrap_content" />
78     </FrameLayout>
80     <include
81         android:layout_width="match_parent"
82         android:layout_height="wrap_content"
83         layout="@layout/alert_dialog_button_bar_material" />
84 </com.android.internal.widget.AlertDialogLayout>