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