blob: b18399e87ab9977da65e335d727d1383bde5a303 [file] [log] [blame]
Isaac Katzenelson0bab38f2011-04-08 15:50:13 -07001<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2011 The Android Open Source Project
3
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
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
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.
15-->
16
17<LinearLayout
18 xmlns:android="http://schemas.android.com/apk/res/android"
19 android:orientation="vertical"
20 android:background="#fafafa"
21 android:layout_width="match_parent"
22 android:layout_height="match_parent"
23 android:paddingTop="12dip"
24 android:paddingLeft="16dip"
25 android:paddingRight="16dip"
26 android:divider="?android:attr/dividerHorizontal"
27 android:showDividers="middle">
28
29 <LinearLayout
30 android:layout_width="match_parent"
31 android:layout_height="0dip"
32 android:layout_weight="1"
33 android:paddingRight="16dip"
34 android:orientation="horizontal">
35
36 <!-- CALENDAR COLOR -->
37 <View
38 android:id="@+id/color"
39 android:layout_width="10dip"
40 android:layout_height="10dip"
41 android:layout_gravity="top|left"
42 android:layout_marginTop="9dip"
43 android:layout_marginRight="6dip" />
44
45 <LinearLayout
46 android:layout_width="0dip"
47 android:layout_height="match_parent"
48 android:layout_weight="1"
49 android:orientation="vertical">
50
51 <!-- WHAT -->
52 <TextView
53 android:id="@+id/title"
54 android:layout_width="wrap_content"
55 android:layout_height="wrap_content"
56 android:autoLink="all"
57 android:textStyle="bold"
58 style="?android:attr/textAppearanceLarge" />
59
60 <!-- WHEN -->
61 <TextView
62 android:id="@+id/when"
63 android:layout_width="wrap_content"
64 android:layout_height="wrap_content"
65 android:layout_marginTop="3dip"
66 style="?android:attr/textAppearanceMedium" />
67
68 <!-- REPEATS -->
69 <LinearLayout
70 android:id="@+id/repeat_container"
71 android:visibility="gone"
72 android:layout_marginTop="5dip"
73 android:orientation="horizontal"
74 android:layout_width="match_parent"
75 android:layout_height="wrap_content">
76 <ImageView
77 android:id="@+id/repeat_icon"
78 android:layout_width="wrap_content"
79 android:layout_height="wrap_content"
80 android:layout_gravity="center"
81 android:src="@drawable/ic_repeat_dark"
82 android:focusable="false"
83 android:clickable="false" />
84 <TextView
85 android:id="@+id/repeat"
86 android:layout_width="match_parent"
87 android:layout_height="wrap_content"
88 android:layout_marginLeft="3dip"
89 style="?android:attr/textAppearanceMedium" />
90 </LinearLayout>
91
92 <!-- WHERE -->
93 <TextView
94 android:id="@+id/where"
95 android:layout_width="match_parent"
96 android:layout_height="wrap_content"
97 android:layout_marginTop="5dip"
98 style="?android:attr/textAppearanceMedium" />
99
100 <!-- DESCRIPTION -->
101 <TextView
102 android:id="@+id/description"
103 android:layout_width="match_parent"
104 android:layout_height="0dip"
105 android:layout_weight="1"
106 android:layout_marginTop="13dip"
107 android:autoLink="all"
108 android:ellipsize="end"
109 style="?android:attr/textAppearanceMedium" />
110
111 <!-- CALENDAR -->
112 <TextView
113 android:id="@+id/calendar"
114 android:layout_width="match_parent"
115 android:layout_height="wrap_content"
116 android:layout_marginTop="13dip"
117 android:singleLine="true"
118 style="?android:attr/textAppearanceMedium" />
119
120 <!-- GUEST LIST -->
121 <TextView
122 android:id="@+id/attendee_list"
123 android:layout_width="wrap_content"
124 android:layout_height="wrap_content"
125 android:layout_marginTop="4dip"
126 android:maxLines="2"
127 android:ellipsize="end"
128 style="?android:attr/textAppearanceMedium" />
129
130 <!-- RESPONSE -->
131 <LinearLayout
132 android:id="@+id/response_container"
133 android:visibility="gone"
134 android:orientation="vertical"
135 android:layout_width="match_parent"
136 android:layout_height="wrap_content">
137 <TextView
138 android:id="@+id/response_label"
139 android:layout_width="match_parent"
140 android:layout_height="wrap_content"
141 android:layout_gravity="center_vertical"
142 android:layout_marginTop="4dip"
143 android:textStyle="bold"
144 style="?android:attr/textAppearanceMedium"
145 android:text="@string/view_event_response_label" />
146 <RadioGroup
147 android:id="@+id/response_value"
148 android:layout_width="match_parent"
149 android:layout_height="wrap_content"
150 android:layout_gravity="center_vertical"
151 android:layout_marginTop="-2dip"
152 android:layout_marginBottom="13dip"
153 android:orientation="horizontal">
154 <RadioButton
155 android:id="@+id/response_yes"
156 android:layout_width="0dip"
157 android:layout_height="wrap_content"
158 android:layout_weight="1"
159 android:minWidth="96dip"
160 style="?android:attr/textAppearanceMedium"
161 android:text="@string/response_yes" />
162 <RadioButton
163 android:id="@+id/response_maybe"
164 android:layout_width="0dip"
165 android:layout_height="wrap_content"
166 android:layout_weight="1"
167 android:minWidth="96dip"
168 style="?android:attr/textAppearanceMedium"
169 android:text="@string/response_maybe" />
170 <RadioButton
171 android:id="@+id/response_no"
172 android:layout_width="0dip"
173 android:layout_height="wrap_content"
174 android:layout_weight="1"
175 android:minWidth="96dip"
176 style="?android:attr/textAppearanceMedium"
177 android:text="@string/response_no" />
178 </RadioGroup>
179 </LinearLayout>
180 </LinearLayout>
181 </LinearLayout>
182
183 <!-- BUTTONS -->
184 <LinearLayout
185 android:orientation="horizontal"
186 android:layout_width="match_parent"
187 android:layout_height="48dip"
188 android:gravity="center"
189 android:layout_marginBottom="4dip"
190 style="?android:attr/buttonBarStyle">
191 <Button
192 android:id="@+id/edit"
193 android:layout_width="0dip"
194 android:layout_height="wrap_content"
195 android:layout_weight="1"
196 android:enabled="false"
197 style="?android:attr/buttonBarButtonStyle"
198 android:text="@string/edit_event_label" />
199 <Button
200 android:id="@+id/delete"
201 android:layout_width="0dip"
202 android:layout_height="wrap_content"
203 android:layout_weight="1"
204 style="?android:attr/buttonBarButtonStyle"
205 android:text="@string/delete_label" />
206 </LinearLayout>
207</LinearLayout>