Android O SDK.
[android_tools.git] / sdk / platforms / android-26 / data / res / layout-watch / alert_dialog_material.xml
blob960b927a0e64f6e9ef1f9afa9c20525d791442a3
1 <?xml version="1.0" encoding="utf-8"?>
2 <!--
3   ~ Copyright (C) 2016 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 <com.android.internal.widget.WatchListDecorLayout
18         xmlns:android="http://schemas.android.com/apk/res/android"
19         android:id="@+id/parentPanel"
20         android:layout_width="match_parent"
21         android:layout_height="match_parent">
22     <ScrollView
23             android:id="@+id/scrollView"
24             android:fillViewport="true"
25             android:layout_width="match_parent"
26             android:layout_height="match_parent">
27         <LinearLayout
28                 android:orientation="vertical"
29                 android:layout_width="match_parent"
30                 android:layout_height="wrap_content">
31             <!-- Top Panel -->
32             <FrameLayout
33                     android:paddingLeft="?dialogPreferredPadding"
34                     android:paddingRight="?dialogPreferredPadding"
35                     android:layout_width="match_parent"
36                     android:layout_height="wrap_content"
37                     android:id="@+id/topPanel"
38                     android:minHeight="@dimen/dialog_list_padding_top_no_title">
39                 <include android:id="@+id/title_template"
40                         android:layout_width="match_parent"
41                         android:layout_height="wrap_content"
42                         layout="@layout/alert_dialog_title_material"/>
43             </FrameLayout>
45             <!-- Content Panel -->
46             <FrameLayout android:id="@+id/contentPanel"
47                     android:layout_width="match_parent"
48                     android:layout_height="wrap_content"
49                     android:clipToPadding="false">
50                 <TextView android:id="@+id/message"
51                         android:layout_width="match_parent"
52                         android:layout_height="wrap_content"
53                         android:gravity="center_horizontal|top"
54                         android:textAppearance="@style/TextAppearance.Material.Subhead"
55                         android:paddingStart="?dialogPreferredPadding"
56                         android:paddingEnd="?dialogPreferredPadding"
57                         android:paddingTop="8dip"
58                         android:paddingBottom="8dip"/>
59             </FrameLayout>
61             <!-- Custom Panel, to replace content panel if needed -->
62             <FrameLayout android:id="@+id/customPanel"
63                     android:layout_width="match_parent"
64                     android:layout_height="match_parent"
65                     android:minHeight="64dp">
66                 <FrameLayout android:id="@+android:id/custom"
67                         android:layout_width="match_parent"
68                         android:layout_height="wrap_content" />
69             </FrameLayout>
71             <!-- Button Panel -->
72             <FrameLayout
73                     android:id="@+id/buttonPanel"
74                     android:minHeight="@dimen/dialog_list_padding_bottom_no_buttons"
75                     android:layout_weight="1"
76                     android:layout_width="match_parent"
77                     android:layout_height="wrap_content">
78                 <LinearLayout
79                         android:layout_width="match_parent"
80                         android:layout_height="wrap_content"
81                         android:layout_gravity="bottom"
82                         android:orientation="vertical"
83                         android:paddingBottom="?dialogPreferredPadding"
84                         style="?android:attr/buttonBarStyle"
85                         android:measureWithLargestChild="true">
86                     <Button android:id="@+id/button1"
87                             android:layout_gravity="start"
88                             android:layout_weight="1"
89                             style="?android:attr/buttonBarButtonStyle"
90                             android:layout_width="match_parent"
91                             android:layout_height="wrap_content" />
92                     <Button android:id="@+id/button3"
93                             android:layout_gravity="start"
94                             android:layout_weight="1"
95                             style="?android:attr/buttonBarButtonStyle"
96                             android:layout_width="match_parent"
97                             android:layout_height="wrap_content" />
98                     <Button android:id="@+id/button2"
99                             android:layout_gravity="start"
100                             android:layout_weight="1"
101                             style="?android:attr/buttonBarButtonStyle"
102                             android:layout_width="match_parent"
103                             android:layout_height="wrap_content" />
104                 </LinearLayout>
105             </FrameLayout>
106         </LinearLayout>
107     </ScrollView>
108 </com.android.internal.widget.WatchListDecorLayout>