1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright (C) 2009 The Android Open Source Project
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
8 http://www.apache.org/licenses/LICENSE-2.0
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
17 <com.android.internal.widget.WeightedLinearLayout
18 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 android:paddingTop="9dip"
24 android:paddingBottom="3dip"
25 android:paddingStart="3dip"
26 android:paddingEnd="1dip"
27 android:majorWeightMin="0.45"
28 android:minorWeightMin="0.72"
29 android:majorWeightMax="0.45"
30 android:minorWeightMax="0.72">
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:minHeight="60dip"
42 android:layout_marginStart="32dip"
43 android:layout_marginEnd="32dip">
44 <ImageView android:id="@+id/icon"
45 android:layout_width="wrap_content"
46 android:layout_height="wrap_content"
47 android:paddingEnd="16dip"
49 android:visibility="gone" />
50 <com.android.internal.widget.DialogTitle android:id="@+id/alertTitle"
51 style="?android:attr/textAppearanceMedium"
52 android:singleLine="true"
53 android:ellipsize="end"
54 android:layout_width="match_parent"
55 android:layout_height="wrap_content"
56 android:textAlignment="viewStart" />
58 <View android:id="@+id/titleDivider"
59 android:layout_width="match_parent"
60 android:layout_height="2dip"
61 android:background="@android:color/holo_blue_light" />
62 <!-- If the client uses a customTitle, it will be added here. -->
65 <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
66 android:layout_width="match_parent"
67 android:layout_height="0dip"
68 android:layout_weight="1">
71 android:id="@android:id/list"
72 android:layout_width="match_parent"
73 android:layout_height="match_parent"
77 android:id="@android:id/empty"
78 android:layout_width="match_parent"
79 android:layout_height="match_parent"
80 android:gravity="center"
81 android:text="@string/activity_list_empty"
82 android:visibility="gone"
83 android:textAppearance="?android:attr/textAppearanceMedium"
87 <LinearLayout android:id="@+id/buttonPanel"
88 android:layout_width="match_parent"
89 android:layout_height="wrap_content"
90 android:minHeight="54dip"
91 android:orientation="vertical"
92 android:divider="?android:attr/dividerHorizontal"
93 android:showDividers="beginning">
95 style="?android:attr/buttonBarStyle"
96 android:layout_width="match_parent"
97 android:layout_height="wrap_content"
98 android:orientation="horizontal"
99 android:measureWithLargestChild="true">
100 <LinearLayout android:id="@+id/leftSpacer"
101 android:layout_weight="0.25"
102 android:layout_width="0dip"
103 android:layout_height="wrap_content"
104 android:orientation="horizontal"
105 android:visibility="gone" />
106 <Button android:id="@+id/button1"
107 android:layout_width="0dip"
108 android:layout_gravity="start"
109 android:layout_weight="1"
111 android:text="@string/cancel"
112 style="?android:attr/buttonBarButtonStyle"
113 android:layout_height="wrap_content" />
114 <LinearLayout android:id="@+id/rightSpacer"
115 android:layout_width="0dip"
116 android:layout_weight="0.25"
117 android:layout_height="wrap_content"
118 android:orientation="horizontal"
119 android:visibility="gone" />
122 </com.android.internal.widget.WeightedLinearLayout>