1<?xml version="1.0" encoding="utf-8"?>
2<!--
3/*
4** Copyright 2010, The Android Open Source Project
5**
6** Licensed under the Apache License, Version 2.0 (the "License");
7** you may not use this file except in compliance with the License.
8** You may obtain a copy of the License at
9**
10**     http://www.apache.org/licenses/LICENSE-2.0
11**
12** Unless required by applicable law or agreed to in writing, software
13** distributed under the License is distributed on an "AS IS" BASIS,
14** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15** See the License for the specific language governing permissions and
16** limitations under the License.
17*/
18-->
19
20<LinearLayout
21    xmlns:android="http://schemas.android.com/apk/res/android"
22    android:id="@+id/parentPanel"
23    android:layout_width="match_parent"
24    android:layout_height="wrap_content"
25    android:layout_marginLeft="8dip"
26    android:layout_marginRight="8dip"
27    android:orientation="vertical">
28
29    <LinearLayout android:id="@+id/topPanel"
30        android:layout_width="match_parent"
31        android:layout_height="wrap_content"
32        android:orientation="vertical">
33        <View android:id="@+id/titleDividerTop"
34            android:layout_width="match_parent"
35            android:layout_height="2dip"
36            android:visibility="gone"
37            android:background="@android:color/holo_blue_light" />
38        <LinearLayout android:id="@+id/title_template"
39            android:layout_width="match_parent"
40            android:layout_height="wrap_content"
41            android:orientation="horizontal"
42            android:gravity="center_vertical|left"
43            android:minHeight="@dimen/alert_dialog_title_height"
44            android:layout_marginLeft="16dip"
45            android:layout_marginRight="16dip">
46            <ImageView android:id="@+id/icon"
47                android:layout_width="wrap_content"
48                android:layout_height="wrap_content"
49                android:paddingRight="8dip"
50                android:src="@null" />
51            <com.android.internal.widget.DialogTitle android:id="@+id/alertTitle"
52                style="?android:attr/windowTitleStyle"
53                android:singleLine="true"
54                android:ellipsize="end"
55                android:layout_width="match_parent"
56                android:layout_height="wrap_content" />
57        </LinearLayout>
58        <View android:id="@+id/titleDivider"
59            android:layout_width="match_parent"
60            android:layout_height="2dip"
61            android:visibility="gone"
62            android:background="@android:color/holo_blue_light" />
63        <!-- If the client uses a customTitle, it will be added here. -->
64    </LinearLayout>
65
66    <LinearLayout android:id="@+id/contentPanel"
67        android:layout_width="match_parent"
68        android:layout_height="wrap_content"
69        android:layout_weight="1"
70        android:orientation="vertical">
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:paddingLeft="16dip"
80                android:paddingRight="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        <FrameLayout android:id="@+android:id/custom"
91            android:layout_width="match_parent"
92            android:layout_height="wrap_content" />
93    </FrameLayout>
94
95    <LinearLayout android:id="@+id/buttonPanel"
96        android:layout_width="match_parent"
97        android:layout_height="wrap_content"
98        android:minHeight="@dimen/alert_dialog_button_bar_height"
99        android:orientation="vertical"
100        android:divider="?android:attr/dividerHorizontal"
101        android:showDividers="beginning"
102        android:dividerPadding="0dip">
103        <LinearLayout
104            style="?android:attr/buttonBarStyle"
105            android:layout_width="match_parent"
106            android:layout_height="wrap_content"
107            android:orientation="horizontal"
108            android:layoutDirection="locale"
109            android:measureWithLargestChild="true">
110            <Button android:id="@+id/button2"
111                android:layout_width="0dip"
112                android:layout_gravity="left"
113                android:layout_weight="1"
114                android:maxLines="2"
115                style="?android:attr/buttonBarButtonStyle"
116                android:textSize="14sp"
117                android:minHeight="@dimen/alert_dialog_button_bar_height"
118                android:layout_height="wrap_content" />
119            <Button android:id="@+id/button3"
120                android:layout_width="0dip"
121                android:layout_gravity="center_horizontal"
122                android:layout_weight="1"
123                android:maxLines="2"
124                style="?android:attr/buttonBarButtonStyle"
125                android:textSize="14sp"
126                android:minHeight="@dimen/alert_dialog_button_bar_height"
127                android:layout_height="wrap_content" />
128            <Button android:id="@+id/button1"
129                android:layout_width="0dip"
130                android:layout_gravity="right"
131                android:layout_weight="1"
132                android:maxLines="2"
133                android:minHeight="@dimen/alert_dialog_button_bar_height"
134                style="?android:attr/buttonBarButtonStyle"
135                android:textSize="14sp"
136                android:layout_height="wrap_content" />
137        </LinearLayout>
138     </LinearLayout>
139</LinearLayout>
140