1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  ~ Copyright (C) 2014 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<LinearLayout
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="match_parent"
23    android:background="@android:color/white"
24    android:layout_gravity="center"
25    android:orientation="vertical">
26
27    <LinearLayout android:id="@+id/topPanel"
28        android:layout_width="match_parent"
29        android:layout_height="wrap_content"
30        android:orientation="vertical">
31        <View android:id="@+id/titleDividerTop"
32            android:layout_width="match_parent"
33            android:layout_height="2dip"
34            android:visibility="gone"
35            android:background="@android:color/holo_blue_light" />
36        <LinearLayout android:id="@+id/title_template"
37            android:layout_width="match_parent"
38            android:layout_height="wrap_content"
39            android:orientation="horizontal"
40            android:gravity="center_vertical|start"
41            android:minHeight="@dimen/alert_dialog_title_height"
42            android:layout_marginStart="16dip"
43            android:layout_marginEnd="16dip">
44            <ImageView android:id="@+id/icon"
45                android:layout_width="wrap_content"
46                android:layout_height="wrap_content"
47                android:paddingEnd="8dip"
48                android:src="@null" />
49            <com.android.internal.widget.DialogTitle android:id="@+id/alertTitle"
50                style="?android:attr/windowTitleStyle"
51                android:singleLine="true"
52                android:ellipsize="end"
53                android:layout_width="match_parent"
54                android:layout_height="wrap_content"
55                android:textAlignment="viewStart" />
56        </LinearLayout>
57        <View android:id="@+id/titleDivider"
58            android:layout_width="match_parent"
59            android:layout_height="2dip"
60            android:visibility="gone"
61            android:background="@android:color/holo_blue_light" />
62        <!-- If the client uses a customTitle, it will be added here. -->
63    </LinearLayout>
64
65    <LinearLayout android:id="@+id/contentPanel"
66        android:layout_width="match_parent"
67        android:layout_height="wrap_content"
68        android:layout_weight="1"
69        android:orientation="vertical"
70        android:minHeight="64dp">
71        <ScrollView android:id="@+id/scrollView"
72            android:layout_width="match_parent"
73            android:layout_height="wrap_content"
74            android:clipToPadding="false">
75            <TextView android:id="@+id/message"
76                style="?android:attr/textAppearanceMedium"
77                android:layout_width="match_parent"
78                android:layout_height="wrap_content"
79                android:paddingStart="16dip"
80                android:paddingEnd="16dip"
81                android:paddingTop="8dip"
82                android:paddingBottom="8dip"/>
83        </ScrollView>
84    </LinearLayout>
85
86    <FrameLayout android:id="@+id/customPanel"
87        android:layout_width="match_parent"
88        android:layout_height="wrap_content"
89        android:layout_weight="1"
90        android:minHeight="64dp">
91        <FrameLayout android:id="@+android:id/custom"
92            android:layout_width="match_parent"
93            android:layout_height="wrap_content" />
94    </FrameLayout>
95
96    <LinearLayout android:id="@+id/buttonPanel"
97        android:layout_width="match_parent"
98        android:layout_height="wrap_content"
99        android:minHeight="@dimen/alert_dialog_button_bar_height"
100        android:orientation="vertical"
101        android:divider="?android:attr/dividerHorizontal"
102        android:showDividers="beginning"
103        android:dividerPadding="0dip">
104        <LinearLayout
105            style="?android:attr/buttonBarStyle"
106            android:layout_width="match_parent"
107            android:layout_height="wrap_content"
108            android:orientation="horizontal"
109            android:layoutDirection="locale"
110            android:measureWithLargestChild="true">
111            <Button android:id="@+id/button2"
112                android:layout_width="wrap_content"
113                android:layout_gravity="start"
114                android:layout_weight="1"
115                android:maxLines="2"
116                style="?android:attr/buttonBarButtonStyle"
117                android:textSize="14sp"
118                android:minHeight="@dimen/alert_dialog_button_bar_height"
119                android:layout_height="wrap_content" />
120            <Button android:id="@+id/button3"
121                android:layout_width="wrap_content"
122                android:layout_gravity="center_horizontal"
123                android:layout_weight="1"
124                android:maxLines="2"
125                style="?android:attr/buttonBarButtonStyle"
126                android:textSize="14sp"
127                android:minHeight="@dimen/alert_dialog_button_bar_height"
128                android:layout_height="wrap_content" />
129            <Button android:id="@+id/button1"
130                android:layout_width="wrap_content"
131                android:layout_gravity="end"
132                android:layout_weight="1"
133                android:maxLines="2"
134                android:minHeight="@dimen/alert_dialog_button_bar_height"
135                style="?android:attr/buttonBarButtonStyle"
136                android:textSize="14sp"
137                android:layout_height="wrap_content" />
138        </LinearLayout>
139     </LinearLayout>
140</LinearLayout>
141