1 <?xml version="1.0" encoding="utf-8"?>
2 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3 android:id="@+id/EventEditLayout"
4 android:layout_width="fill_parent"
5 android:layout_height="fill_parent"
6 android:background="@drawable/morphossbg"
7 android:orientation="vertical" >
9 android:id="@+id/EventEditBelowTitleLayout"
10 android:layout_width="fill_parent"
11 android:layout_height="fill_parent"
12 android:layout_weight="1"
13 android:orientation="horizontal" >
16 android:id="@+id/EventEditColourBar"
17 android:layout_width="13sp"
18 android:layout_height="fill_parent"
19 android:background="#704080f0" />
21 android:layout_width="fill_parent"
22 android:layout_height="wrap_content"
23 android:layout_weight="1"
24 android:fillViewport="true" >
26 android:id="@+id/EventEditDataLayout"
27 android:layout_width="fill_parent"
28 android:layout_height="fill_parent"
29 android:layout_weight="1"
30 android:orientation="vertical" >
33 android:id="@+id/EventName"
34 android:layout_width="fill_parent"
35 android:layout_height="wrap_content"
36 android:layout_below="@+id/EventEditTitle"
37 android:inputType="textCapSentences|textAutoCorrect|textEmailSubject"
38 android:paddingBottom="10sp"
39 android:paddingLeft="3sp"
40 android:textSize="26sp" />
41 <!-- Outer Layout for from/to -->
43 android:id="@+id/EventFromToLayout"
44 android:layout_width="fill_parent"
45 android:layout_height="wrap_content"
46 android:layout_below="@+id/EventName"
47 android:orientation="vertical" >
50 android:id="@+id/EventFromContent"
51 android:layout_width="fill_parent"
52 android:layout_height="wrap_content"
53 android:paddingBottom="3sp" >
55 android:id="@+id/EventFromLabel"
56 style="@style/event_view_label"
57 android:layout_width="70dp"
58 android:layout_height="fill_parent"
59 android:gravity="center_vertical"
60 android:text="@string/FromPrompt" />
62 android:layout_width="fill_parent"
63 android:layout_height="wrap_content"
64 android:layout_marginRight="5sp"
65 android:layout_weight="3"
66 android:background="@color/themed_button_colour" >
68 android:id="@+id/EventFromDateTime"
69 style="@style/themed_button_big"
70 android:layout_width="fill_parent"
71 android:layout_height="wrap_content"
72 android:minHeight="30sp"
73 android:text="7:00pm, 29 October 2011" />
76 <!-- Until Content -->
78 android:id="@+id/EventUntilContent"
79 android:layout_width="fill_parent"
80 android:layout_height="wrap_content"
81 android:layout_below="@+id/EventFromContent"
82 android:paddingBottom="3sp" >
85 android:id="@+id/EventUntilLabel"
86 style="@style/event_view_label"
87 android:layout_width="70dp"
88 android:layout_height="wrap_content"
89 android:text="@string/UntilPrompt" />
91 android:layout_width="fill_parent"
92 android:layout_height="wrap_content"
93 android:layout_marginRight="5sp"
94 android:layout_weight="3"
95 android:background="@color/themed_button_colour" >
97 android:id="@+id/EventUntilDate"
98 style="@style/themed_button_big"
99 android:layout_width="fill_parent"
100 android:layout_height="wrap_content"
101 android:layout_below="@+id/EventFromContent"
102 android:minHeight="30sp"
103 android:text="2009-12-23" />
107 <!-- Location Label and Button -->
109 android:id="@+id/EventLocationLayout"
110 android:layout_width="fill_parent"
111 android:layout_height="wrap_content"
112 android:layout_below="@+id/EventFromToLayout" >
113 <!-- Location Label -->
115 android:id="@+id/EventLocationLabel"
116 style="@style/event_view_label"
117 android:layout_width="70dp"
118 android:layout_height="fill_parent"
119 android:text="@string/LocationPrompt" />
121 android:id="@+id/EventLocationContent"
122 style="@style/event_view_content"
123 android:layout_width="fill_parent"
124 android:layout_height="64sp"
125 android:layout_toRightOf="@+id/EventLocationLabel"
126 android:gravity="top"
127 android:inputType="textCapSentences|textAutoCorrect|textPostalAddress|textMultiLine"
128 android:paddingBottom="0px" />
130 <!-- End location label and button -->
132 android:id="@+id/EventNotesLayout"
133 android:layout_width="fill_parent"
134 android:layout_height="wrap_content"
135 android:layout_below="@+id/EventFromToLayout"
136 android:layout_weight="1"
137 android:paddingBottom="2sp"
138 android:paddingTop="40sp" >
139 <!-- Notes label and content -->
141 android:id="@+id/EventNotesLabel"
142 style="@style/event_view_label"
143 android:layout_width="fill_parent"
144 android:layout_height="wrap_content"
145 android:text="@string/NotesPrompt" />
147 android:id="@+id/EventNotesContent"
148 style="@style/event_view_content"
149 android:layout_width="fill_parent"
150 android:layout_height="wrap_content"
151 android:layout_below="@+id/EventNotesLabel"
152 android:layout_weight="1"
153 android:gravity="top"
154 android:inputType="textCapSentences|textAutoCorrect|textMultiLine"
155 android:minLines="4" />
158 android:id="@+id/EventAlarmsLayout"
159 android:layout_width="fill_parent"
160 android:layout_height="wrap_content"
161 android:layout_below="@+id/EventNotesLayout"
162 android:paddingBottom="5sp" >
164 android:id="@+id/EventAlarmsTopLayout"
165 android:layout_width="fill_parent"
166 android:layout_height="wrap_content"
167 android:layout_gravity="left|center_vertical"
168 android:layout_marginBottom="1sp"
169 android:layout_marginLeft="15sp"
170 android:layout_marginRight="15sp"
171 android:background="@color/themed_button_colour" >
173 android:id="@+id/EventAlarmsButton"
174 style="@style/themed_button_big"
175 android:layout_width="fill_parent"
176 android:layout_height="wrap_content"
177 android:minHeight="24sp"
178 android:text="@string/Add_Alarm" />
181 android:id="@+id/alarms_list_table"
182 android:layout_width="fill_parent"
183 android:layout_height="fill_parent"
184 android:layout_below="@+id/EventAlarmsTopLayout" >
188 android:id="@+id/EventRepeatsLayout"
189 android:layout_width="fill_parent"
190 android:layout_height="wrap_content"
191 android:layout_below="@+id/EventAlarmsLayout"
192 android:paddingBottom="10sp" >
193 <!-- Repeats label and content -->
195 android:layout_width="fill_parent"
196 android:layout_height="wrap_content"
197 android:layout_gravity="left|center_vertical"
198 android:layout_marginLeft="15sp"
199 android:layout_marginRight="15sp"
200 android:background="@color/themed_button_colour" >
202 android:id="@+id/EventRepeatsContent"
203 style="@style/themed_button_big"
204 android:layout_width="fill_parent"
205 android:layout_height="wrap_content"
206 android:minHeight="24sp"
207 android:text="@string/setRepeatRule" />
210 <!-- Collection Selection Button -->
212 android:id="@+id/EventEditCollectionLayout"
213 android:layout_width="fill_parent"
214 android:layout_height="wrap_content"
215 android:layout_below="@id/EventRepeatsLayout"
216 android:layout_gravity="left|center_vertical"
217 android:layout_marginLeft="15sp"
218 android:layout_marginRight="15sp"
219 android:background="@color/themed_button_colour"
220 android:minHeight="24sp" >
222 android:id="@+id/EventEditCollectionButton"
223 style="@style/themed_button_big"
224 android:layout_width="fill_parent"
225 android:layout_height="wrap_content"
226 android:text="Select Calendar" />
232 android:id="@+id/button_layout"
233 android:layout_width="fill_parent"
234 android:layout_height="36sp"
235 android:layout_gravity="bottom"
236 android:background="@color/bottom_bg" >
239 android:id="@+id/EventEditColourBarBottom"
240 android:layout_width="13sp"
241 android:layout_height="fill_parent"
242 android:background="#704080f0" />
244 android:layout_width="fill_parent"
245 android:layout_height="fill_parent"
246 android:layout_weight="3"
247 android:gravity="center"
248 android:padding="0sp" >
250 android:layout_width="wrap_content"
251 android:layout_height="wrap_content"
252 android:background="@color/themed_button_colour" >
254 android:id="@+id/event_apply_button"
255 style="@style/themed_bottom_button"
256 android:layout_width="wrap_content"
257 android:layout_height="wrap_content"
258 android:gravity="center_vertical|center_horizontal"
259 android:padding="0sp"
260 android:text="@string/Apply"
261 android:width="110sp" />
265 android:layout_width="fill_parent"
266 android:layout_height="fill_parent"
267 android:layout_weight="3"
268 android:gravity="center"
269 android:padding="0sp" >
271 android:layout_width="wrap_content"
272 android:layout_height="wrap_content"
273 android:background="@color/themed_button_colour" >
275 android:id="@+id/event_cancel_button"
276 style="@style/themed_bottom_button"
277 android:layout_width="wrap_content"
278 android:layout_height="wrap_content"
279 android:gravity="center_vertical|center_horizontal"
280 android:padding="0sp"
281 android:text="@string/cancel"
282 android:width="110sp" />