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_marginStart="8dip" 26 android:layout_marginEnd="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|start" 43 android:minHeight="@dimen/alert_dialog_title_height" 44 android:layout_marginStart="16dip" 45 android:layout_marginEnd="16dip"> 46 <ImageView android:id="@+id/icon" 47 android:layout_width="wrap_content" 48 android:layout_height="wrap_content" 49 android:paddingEnd="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 android:textAlignment="viewStart" /> 58 </LinearLayout> 59 <View android:id="@+id/titleDivider" 60 android:layout_width="match_parent" 61 android:layout_height="2dip" 62 android:visibility="gone" 63 android:background="@android:color/holo_blue_light" /> 64 <!-- If the client uses a customTitle, it will be added here. --> 65 </LinearLayout> 66 67 <LinearLayout android:id="@+id/contentPanel" 68 android:layout_width="match_parent" 69 android:layout_height="wrap_content" 70 android:layout_weight="1" 71 android:orientation="vertical" 72 android:minHeight="64dp"> 73 <ScrollView android:id="@+id/scrollView" 74 android:layout_width="match_parent" 75 android:layout_height="wrap_content" 76 android:clipToPadding="false"> 77 <TextView android:id="@+id/message" 78 style="?android:attr/textAppearanceMedium" 79 android:layout_width="match_parent" 80 android:layout_height="wrap_content" 81 android:paddingStart="16dip" 82 android:paddingEnd="16dip" 83 android:paddingTop="8dip" 84 android:paddingBottom="8dip"/> 85 </ScrollView> 86 </LinearLayout> 87 88 <FrameLayout android:id="@+id/customPanel" 89 android:layout_width="match_parent" 90 android:layout_height="wrap_content" 91 android:layout_weight="1" 92 android:minHeight="64dp"> 93 <FrameLayout android:id="@+android:id/custom" 94 android:layout_width="match_parent" 95 android:layout_height="wrap_content" /> 96 </FrameLayout> 97 98 <LinearLayout android:id="@+id/buttonPanel" 99 android:layout_width="match_parent" 100 android:layout_height="wrap_content" 101 android:minHeight="@dimen/alert_dialog_button_bar_height" 102 android:orientation="vertical" 103 android:divider="?android:attr/dividerHorizontal" 104 android:showDividers="beginning" 105 android:dividerPadding="0dip"> 106 <LinearLayout 107 style="?android:attr/buttonBarStyle" 108 android:layout_width="match_parent" 109 android:layout_height="wrap_content" 110 android:orientation="horizontal" 111 android:layoutDirection="locale" 112 android:measureWithLargestChild="true"> 113 <Button android:id="@+id/button2" 114 android:layout_width="wrap_content" 115 android:layout_gravity="start" 116 android:layout_weight="1" 117 android:maxLines="2" 118 style="?android:attr/buttonBarButtonStyle" 119 android:textSize="14sp" 120 android:minHeight="@dimen/alert_dialog_button_bar_height" 121 android:layout_height="wrap_content" /> 122 <Button android:id="@+id/button3" 123 android:layout_width="wrap_content" 124 android:layout_gravity="center_horizontal" 125 android:layout_weight="1" 126 android:maxLines="2" 127 style="?android:attr/buttonBarButtonStyle" 128 android:textSize="14sp" 129 android:minHeight="@dimen/alert_dialog_button_bar_height" 130 android:layout_height="wrap_content" /> 131 <Button android:id="@+id/button1" 132 android:layout_width="wrap_content" 133 android:layout_gravity="end" 134 android:layout_weight="1" 135 android:maxLines="2" 136 android:minHeight="@dimen/alert_dialog_button_bar_height" 137 style="?android:attr/buttonBarButtonStyle" 138 android:textSize="14sp" 139 android:layout_height="wrap_content" /> 140 </LinearLayout> 141 </LinearLayout> 142</LinearLayout> 143