1 |
<?xml version="1.0" encoding="utf-8"?> |
2 |
<!-- |
3 |
Copyright (C) 2015 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 xmlns:android="http://schemas.android.com/apk/res/android" |
19 |
android:id="@+id/parentPanel" |
20 |
android:layout_width="match_parent" |
21 |
android:layout_height="wrap_content" |
22 |
android:orientation="vertical"> |
23 |
|
24 |
<LinearLayout |
25 |
android:id="@+id/topPanel" |
26 |
android:layout_width="match_parent" |
27 |
android:layout_height="wrap_content" |
28 |
android:orientation="vertical"> |
29 |
|
30 |
<LinearLayout |
31 |
android:id="@+id/title_template" |
32 |
android:layout_width="match_parent" |
33 |
android:layout_height="wrap_content" |
34 |
android:orientation="horizontal" |
35 |
android:gravity="center_vertical|start" |
36 |
android:paddingLeft="?attr/dialogPreferredPadding" |
37 |
android:paddingRight="?attr/dialogPreferredPadding" |
38 |
android:paddingTop="@dimen/abc_dialog_padding_top_material"> |
39 |
|
40 |
<ImageView |
41 |
android:id="@android:id/icon" |
42 |
android:layout_width="32dip" |
43 |
android:layout_height="32dip" |
44 |
android:layout_marginEnd="8dip" |
45 |
android:scaleType="fitCenter" |
46 |
android:src="@null"/> |
47 |
|
48 |
<android.support.v7.internal.widget.DialogTitle |
49 |
android:id="@+id/alertTitle" |
50 |
style="?attr/android:windowTitleStyle" |
51 |
android:singleLine="true" |
52 |
android:ellipsize="end" |
53 |
android:layout_width="match_parent" |
54 |
android:layout_height="wrap_content" |
55 |
android:textAlignment="viewStart"/> |
56 |
|
57 |
</LinearLayout> |
58 |
<!-- If the client uses a customTitle, it will be added here. --> |
59 |
</LinearLayout> |
60 |
|
61 |
<FrameLayout |
62 |
android:id="@+id/contentPanel" |
63 |
android:layout_width="match_parent" |
64 |
android:layout_height="wrap_content" |
65 |
android:layout_weight="1" |
66 |
android:minHeight="48dp"> |
67 |
|
68 |
<ScrollView |
69 |
android:id="@+id/scrollView" |
70 |
android:layout_width="match_parent" |
71 |
android:layout_height="wrap_content" |
72 |
android:clipToPadding="false"> |
73 |
|
74 |
<LinearLayout |
75 |
android:layout_width="match_parent" |
76 |
android:layout_height="wrap_content" |
77 |
android:orientation="vertical"> |
78 |
|
79 |
<TextView |
80 |
android:id="@android:id/message" |
81 |
style="@style/TextAppearance.AppCompat.Subhead" |
82 |
android:layout_width="match_parent" |
83 |
android:layout_height="wrap_content" |
84 |
android:paddingLeft="?attr/dialogPreferredPadding" |
85 |
android:paddingTop="@dimen/abc_dialog_padding_top_material" |
86 |
android:paddingRight="?attr/dialogPreferredPadding"/> |
87 |
|
88 |
<View |
89 |
android:id="@+id/textSpacerNoButtons" |
90 |
android:visibility="gone" |
91 |
android:layout_width="0dp" |
92 |
android:layout_height="@dimen/abc_dialog_padding_top_material"/> |
93 |
</LinearLayout> |
94 |
</ScrollView> |
95 |
|
96 |
</FrameLayout> |
97 |
|
98 |
<FrameLayout |
99 |
android:id="@+id/customPanel" |
100 |
android:layout_width="match_parent" |
101 |
android:layout_height="wrap_content" |
102 |
android:layout_weight="1" |
103 |
android:minHeight="48dp"> |
104 |
|
105 |
<FrameLayout |
106 |
android:id="@+id/custom" |
107 |
android:layout_width="match_parent" |
108 |
android:layout_height="wrap_content"/> |
109 |
</FrameLayout> |
110 |
|
111 |
<LinearLayout |
112 |
android:id="@+id/buttonPanel" |
113 |
style="?attr/buttonBarStyle" |
114 |
android:layout_width="match_parent" |
115 |
android:layout_height="wrap_content" |
116 |
android:layoutDirection="locale" |
117 |
android:orientation="horizontal" |
118 |
android:paddingLeft="12dp" |
119 |
android:paddingRight="12dp" |
120 |
android:paddingTop="8dp" |
121 |
android:paddingBottom="8dp" |
122 |
android:gravity="bottom"> |
123 |
|
124 |
<Button |
125 |
android:id="@android:id/button3" |
126 |
style="?attr/buttonBarNeutralButtonStyle" |
127 |
android:layout_width="wrap_content" |
128 |
android:layout_height="wrap_content"/> |
129 |
|
130 |
<android.support.v4.widget.Space |
131 |
android:layout_width="0dp" |
132 |
android:layout_height="0dp" |
133 |
android:layout_weight="1" |
134 |
android:visibility="invisible"/> |
135 |
|
136 |
<Button |
137 |
android:id="@android:id/button2" |
138 |
style="?attr/buttonBarNegativeButtonStyle" |
139 |
android:layout_width="wrap_content" |
140 |
android:layout_height="wrap_content"/> |
141 |
|
142 |
<Button |
143 |
android:id="@android:id/button1" |
144 |
style="?attr/buttonBarPositiveButtonStyle" |
145 |
android:layout_width="wrap_content" |
146 |
android:layout_height="wrap_content"/> |
147 |
</LinearLayout> |
148 |
</LinearLayout><!-- From: file:/usr/local/google/buildbot/repo_clients/https___googleplex-android.googlesource.com_a_platform_manifest.git/lmp-mr1-supportlib-release/frameworks/support/v7/appcompat/res/layout/abc_alert_dialog_material.xml --> |