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="wrap_content"
23    android:orientation="horizontal">
24
25   <LinearLayout
26       android:id="@+id/leftPanel"
27       android:layout_width="0dp"
28       android:layout_weight="1"
29       android:layout_height="wrap_content"
30       android:orientation="vertical">
31
32    <LinearLayout android:id="@+id/topPanel"
33        android:layout_width="match_parent"
34        android:layout_height="wrap_content"
35        android:orientation="vertical">
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:paddingStart="16dip"
42            android:paddingEnd="16dip"
43            android:paddingTop="16dip"
44            android:paddingBottom="8dip">
45            <ImageView android:id="@+id/icon"
46                android:layout_width="32dip"
47                android:layout_height="32dip"
48                android:layout_marginEnd="8dip"
49                android:scaleType="fitCenter"
50                android:src="@null" />
51            <com.android.internal.widget.DialogTitle android:id="@+id/alertTitle"
52                style="?attr/windowTitleStyle"
53                android:singleLine="true"
54                android:ellipsize="end"
55                android:layout_width="match_parent"
56                android:layout_height="wrap_content"
57                android:textAlignment="viewStart" />
58        </LinearLayout>
59        <!-- If the client uses a customTitle, it will be added here. -->
60    </LinearLayout>
61
62    <LinearLayout android:id="@+id/contentPanel"
63        android:layout_width="match_parent"
64        android:layout_height="wrap_content"
65        android:layout_weight="1"
66        android:orientation="vertical"
67        android:minHeight="64dp">
68        <ScrollView android:id="@+id/scrollView"
69            android:layout_width="match_parent"
70            android:layout_height="wrap_content"
71            android:clipToPadding="false">
72            <TextView android:id="@+id/message"
73                style="?attr/textAppearanceMedium"
74                android:layout_width="match_parent"
75                android:layout_height="wrap_content"
76                android:paddingStart="16dip"
77                android:paddingEnd="16dip"
78                android:paddingTop="16dip"
79                android:paddingBottom="16dip" />
80        </ScrollView>
81    </LinearLayout>
82
83    <FrameLayout android:id="@+id/customPanel"
84        android:layout_width="match_parent"
85        android:layout_height="wrap_content"
86        android:layout_weight="1"
87        android:minHeight="64dp">
88        <FrameLayout android:id="@+id/custom"
89            android:layout_width="match_parent"
90            android:layout_height="wrap_content" />
91    </FrameLayout>
92    </LinearLayout>
93
94    <LinearLayout android:id="@+id/buttonPanel"
95        style="?attr/buttonBarStyle"
96        android:layout_width="wrap_content"
97        android:layout_height="wrap_content"
98        android:layout_gravity="center_vertical"
99        android:orientation="vertical"
100        android:gravity="end">
101        <LinearLayout
102            android:layout_width="wrap_content"
103            android:layout_height="wrap_content"
104            android:layoutDirection="locale"
105            android:orientation="vertical">
106            <Button android:id="@+id/button3"
107                style="?attr/buttonBarNeutralButtonStyle"
108                android:layout_width="match_parent"
109                android:layout_height="wrap_content"
110                android:maxLines="2"
111                android:minHeight="@dimen/alert_dialog_button_bar_height" />
112            <Button android:id="@+id/button2"
113                style="?attr/buttonBarNegativeButtonStyle"
114                android:layout_width="match_parent"
115                android:layout_height="wrap_content"
116                android:maxLines="2"
117                android:minHeight="@dimen/alert_dialog_button_bar_height" />
118            <Button android:id="@+id/button1"
119                style="?attr/buttonBarPositiveButtonStyle"
120                android:layout_width="match_parent"
121                android:layout_height="wrap_content"
122                android:maxLines="2"
123                android:minHeight="@dimen/alert_dialog_button_bar_height" />
124        </LinearLayout>
125     </LinearLayout>
126</LinearLayout>
127