1<?xml version="1.0" encoding="utf-8"?>
2<!--
3/* //device/apps/common/res/layout/alert_dialog.xml
4**
5** Copyright 2006, The Android Open Source Project
6**
7** Licensed under the Apache License, Version 2.0 (the "License");
8** you may not use this file except in compliance with the License.
9** You may obtain a copy of the License at
10**
11**     http://www.apache.org/licenses/LICENSE-2.0
12**
13** Unless required by applicable law or agreed to in writing, software
14** distributed under the License is distributed on an "AS IS" BASIS,
15** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16** See the License for the specific language governing permissions and
17** limitations under the License.
18*/
19-->
20
21<LinearLayout
22    xmlns:android="http://schemas.android.com/apk/res/android"
23    android:id="@+id/parentPanel"
24    android:layout_width="match_parent"
25    android:layout_height="wrap_content"
26    android:orientation="vertical"
27    android:paddingTop="9dip"
28    android:paddingBottom="3dip"
29    android:paddingStart="3dip"
30    android:paddingEnd="1dip">
31
32    <LinearLayout android:id="@+id/topPanel"
33        android:layout_width="match_parent"
34        android:layout_height="wrap_content"
35        android:minHeight="54dip"
36        android:orientation="vertical">
37        <LinearLayout android:id="@+id/title_template"
38            android:layout_width="match_parent"
39            android:layout_height="wrap_content"
40            android:orientation="horizontal"
41            android:gravity="center_vertical"
42            android:layout_marginTop="6dip"
43            android:layout_marginBottom="9dip"
44            android:layout_marginStart="10dip"
45            android:layout_marginEnd="10dip">
46            <ImageView android:id="@+id/icon"
47                android:layout_width="wrap_content"
48                android:layout_height="wrap_content"
49                android:layout_gravity="top"
50                android:paddingTop="6dip"
51                android:paddingEnd="10dip"
52                android:src="@drawable/ic_dialog_info" />
53            <com.android.internal.widget.DialogTitle android:id="@+id/alertTitle"
54                style="?android:attr/textAppearanceLarge"
55                android:singleLine="true"
56                android:ellipsize="end"
57                android:layout_width="match_parent"
58                android:layout_height="wrap_content"
59                android:textAlignment="viewStart" />
60        </LinearLayout>
61        <ImageView android:id="@+id/titleDivider"
62            android:layout_width="match_parent"
63            android:layout_height="1dip"
64            android:visibility="gone"
65            android:scaleType="fitXY"
66            android:gravity="fill_horizontal"
67            android:src="@android:drawable/divider_horizontal_dark" />
68        <!-- If the client uses a customTitle, it will be added here. -->
69    </LinearLayout>
70
71    <LinearLayout android:id="@+id/contentPanel"
72        android:layout_width="match_parent"
73        android:layout_height="wrap_content"
74        android:layout_weight="1"
75        android:orientation="vertical">
76        <ScrollView android:id="@+id/scrollView"
77            android:layout_width="match_parent"
78            android:layout_height="wrap_content"
79            android:paddingTop="2dip"
80            android:paddingBottom="12dip"
81            android:paddingStart="14dip"
82            android:paddingEnd="10dip"
83            android:overScrollMode="ifContentScrolls">
84            <TextView android:id="@+id/message"
85                style="?android:attr/textAppearanceMedium"
86                android:layout_width="match_parent"
87                android:layout_height="wrap_content"
88                android:padding="5dip" />
89        </ScrollView>
90    </LinearLayout>
91
92    <FrameLayout android:id="@+id/customPanel"
93        android:layout_width="match_parent"
94        android:layout_height="wrap_content"
95        android:layout_weight="1">
96        <FrameLayout android:id="@+android:id/custom"
97            android:layout_width="match_parent"
98            android:layout_height="wrap_content"
99            android:paddingTop="5dip"
100            android:paddingBottom="5dip" />
101    </FrameLayout>
102
103    <LinearLayout android:id="@+id/buttonPanel"
104        android:layout_width="match_parent"
105        android:layout_height="wrap_content"
106        android:minHeight="54dip"
107        android:orientation="vertical" >
108        <LinearLayout
109            style="?android:attr/buttonBarStyle"
110            android:layout_width="match_parent"
111            android:layout_height="wrap_content"
112            android:orientation="horizontal"
113            android:paddingTop="4dip"
114            android:paddingStart="2dip"
115            android:paddingEnd="2dip"
116            android:measureWithLargestChild="true">
117            <LinearLayout android:id="@+id/leftSpacer"
118                android:layout_weight="0.25"
119                android:layout_width="0dip"
120                android:layout_height="wrap_content"
121                android:orientation="horizontal"
122                android:visibility="gone" />
123            <Button android:id="@+id/button1"
124                android:layout_width="0dip"
125                android:layout_gravity="start"
126                android:layout_weight="1"
127                style="?android:attr/buttonBarButtonStyle"
128                android:maxLines="2"
129                android:layout_height="wrap_content" />
130            <Button android:id="@+id/button3"
131                android:layout_width="0dip"
132                android:layout_gravity="center_horizontal"
133                android:layout_weight="1"
134                style="?android:attr/buttonBarButtonStyle"
135                android:maxLines="2"
136                android:layout_height="wrap_content" />
137            <Button android:id="@+id/button2"
138                android:layout_width="0dip"
139                android:layout_gravity="end"
140                android:layout_weight="1"
141                style="?android:attr/buttonBarButtonStyle"
142                android:maxLines="2"
143                android:layout_height="wrap_content" />
144            <LinearLayout android:id="@+id/rightSpacer"
145                android:layout_width="0dip"
146                android:layout_weight="0.25"
147                android:layout_height="wrap_content"
148                android:orientation="horizontal"
149                android:visibility="gone" />
150        </LinearLayout>
151     </LinearLayout>
152</LinearLayout>
153