Initial Contribution
[android/platform/packages/apps/Calendar.git] / res / layout / event_activity.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright (C) 2006 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 <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
18     android:id="@+id/scroll_view"
19     android:layout_width="fill_parent"
20     android:layout_height="fill_parent"
21     android:background="@drawable/event_background" >
22
23     <LinearLayout android:id="@+id/event"
24         android:orientation="vertical"
25         android:paddingLeft="15dip"
26         android:paddingRight="3dip"
27         android:paddingTop="3dip"
28         android:paddingBottom="15dip"
29         android:layout_width="fill_parent"
30         android:layout_height="fill_parent">
31
32         <TableLayout
33             android:layout_width="fill_parent"
34             android:layout_height="wrap_content"
35             android:shrinkColumns="1">
36
37             <TableRow>
38                 <TextView android:id="@+id/what_label"
39                     android:text="@string/what_label"
40                     android:gravity="right|top"
41                     android:textStyle="bold"
42                     android:paddingRight="10dip"
43                     android:layout_width="wrap_content"
44                     android:layout_height="wrap_content" />
45
46                 <EditText android:id="@+id/event_title"
47                     android:layout_width="fill_parent"
48                     android:layout_height="wrap_content" />
49             </TableRow>
50
51             <ImageView android:id="@+id/what_divider" android:scaleType="fitXY"
52                 android:src="@drawable/section_divider"
53                 android:layout_marginTop="4dip"
54                 android:layout_marginBottom="4dip"
55                 android:layout_width="fill_parent"
56                 android:layout_height="wrap_content" />
57
58             <TableRow>
59                 <TextView android:id="@+id/when_label"
60                     android:text="@string/when_label"
61                     android:gravity="right|top"
62                     android:textStyle="bold"
63                     android:paddingRight="10dip"
64                     android:layout_width="wrap_content"
65                     android:layout_height="wrap_content" />
66
67                 <CheckBox android:id="@+id/all_day"
68                     android:layout_width="wrap_content"
69                     android:layout_height="wrap_content"
70                     android:text="@string/all_day_event" />
71             </TableRow>
72
73             <TableRow>
74                 <TextView android:id="@+id/from_label"
75                     android:text="@string/from_label"
76                     android:textColor="@drawable/label_foreground"
77                     android:gravity="right|top"
78                     android:paddingRight="10dip"
79                     android:layout_width="wrap_content"
80                     android:layout_height="wrap_content" />
81
82                 <com.android.calendar.DateSpinner android:id="@+id/start_date_spinner"
83                     android:layout_width="fill_parent"
84                     android:layout_height="wrap_content" />
85             </TableRow>
86
87             <TableRow>
88                 <com.android.calendar.TimeSpinner android:id="@+id/start_time_spinner"
89                     android:layout_width="fill_parent"
90                     android:layout_height="wrap_content"
91                     android:layout_column="1" />
92             </TableRow>
93
94             <TableRow>
95                 <TextView android:id="@+id/to_label"
96                     android:text="@string/to_label"
97                     android:textColor="@drawable/label_foreground"
98                     android:gravity="right|top"
99                     android:paddingRight="10dip"
100                     android:layout_width="wrap_content"
101                     android:layout_height="wrap_content" />
102
103                 <com.android.calendar.TimeSpinner android:id="@+id/end_time_spinner"
104                     android:layout_width="fill_parent"
105                     android:layout_height="wrap_content" />
106             </TableRow>
107
108             <TableRow>
109                 <TextView android:id="@+id/to_date_label"
110                     android:text="@string/to_label"
111                     android:textColor="@drawable/label_foreground"
112                     android:gravity="right|top"
113                     android:paddingRight="10dip"
114                     android:layout_width="wrap_content"
115                     android:layout_height="wrap_content" />
116
117                 <com.android.calendar.DateSpinner android:id="@+id/end_date_spinner"
118                     android:layout_width="fill_parent"
119                     android:layout_height="wrap_content" />
120             </TableRow>
121
122             <ImageView android:id="@+id/when_divider" android:scaleType="fitXY"
123                 android:src="@drawable/section_divider"
124                 android:layout_marginTop="4dip"
125                 android:layout_marginBottom="4dip"
126                 android:layout_width="fill_parent"
127                 android:layout_height="wrap_content" />
128
129             <TableRow android:id="@+id/where_row">
130                 <TextView android:id="@+id/where_label"
131                     android:text="@string/where_label"
132                     android:gravity="right|top"
133                     android:textStyle="bold"
134                     android:paddingRight="10dip"
135                     android:layout_width="wrap_content"
136                     android:layout_height="wrap_content" />
137
138                 <EditText android:id="@+id/where"
139                     android:layout_width="fill_parent"
140                     android:layout_height="wrap_content" />
141             </TableRow>
142
143             <ImageView android:id="@+id/where_divider" android:scaleType="fitXY"
144                 android:src="@drawable/section_divider"
145                 android:layout_marginTop="4dip"
146                 android:layout_marginBottom="4dip"
147                 android:layout_width="fill_parent"
148                 android:layout_height="wrap_content" />
149
150             <TableRow>
151                 <TextView android:id="@+id/reminder_label"
152                     android:gravity="right|top"
153                     android:textStyle="bold"
154                     android:layout_width="wrap_content"
155                     android:layout_height="wrap_content"
156                     android:paddingRight="10dip"
157                     android:text="@string/reminder" />
158
159                 <Spinner android:id="@+id/reminder"
160                     android:layout_width="wrap_content"
161                     android:layout_height="wrap_content"
162                     android:entries="@array/reminder_minutes_labels" />
163             </TableRow>
164
165             <ImageView android:id="@+id/reminder_divider" android:scaleType="fitXY"
166                 android:src="@drawable/section_divider"
167                 android:layout_marginTop="4dip"
168                 android:layout_marginBottom="4dip"
169                 android:layout_width="fill_parent"
170                 android:layout_height="wrap_content" />
171
172             <TableRow>
173                 <ImageView android:id="@+id/calendar_icon"
174                     android:layout_marginTop="4dip"
175                     android:paddingRight="10dip"
176                     android:layout_width="wrap_content"
177                     android:layout_height="wrap_content"
178                     android:src="@drawable/sym_calendar_event" />
179
180                 <Spinner android:id="@+id/calendars"
181                     android:layout_width="wrap_content"
182                     android:layout_height="wrap_content" />
183             </TableRow>
184
185             <ImageView android:id="@+id/calendar_divider" android:scaleType="fitXY"
186                 android:src="@drawable/section_divider"
187                 android:layout_marginTop="4dip"
188                 android:layout_marginBottom="4dip"
189                 android:layout_width="fill_parent"
190                 android:layout_height="wrap_content" />
191
192             <TableRow>
193                 <TextView android:id="@+id/repeats_label"
194                     android:text="@string/repeats_label"
195                     android:gravity="right|top"
196                     android:textStyle="bold"
197                     android:paddingRight="10dip"
198                     android:layout_width="wrap_content"
199                     android:layout_height="wrap_content" />
200
201                 <Spinner android:id="@+id/repeats"
202                     android:layout_width="fill_parent"
203                     android:layout_height="wrap_content"
204                     android:entries="@array/repeat_strings" />
205             </TableRow>
206
207             <TableRow android:id="@+id/every_row">
208                 <TextView android:id="@+id/every_label"
209                     android:text="@string/every_label"
210                     android:gravity="right|top"
211                     android:paddingRight="10dip"
212                     android:layout_width="wrap_content"
213                     android:layout_height="wrap_content" />
214
215                 <Spinner android:id="@+id/every"
216                     android:layout_width="fill_parent"
217                     android:layout_height="wrap_content" />
218             </TableRow>
219
220             <TableRow android:id="@+id/on_row">
221                 <TextView android:id="@+id/on_label"
222                     android:text="@string/on_label"
223                     android:gravity="right|top"
224                     android:paddingRight="10dip"
225                     android:layout_width="wrap_content"
226                     android:layout_height="wrap_content" />
227
228                 <LinearLayout
229                     android:orientation="horizontal"
230                     android:layout_width="fill_parent"
231                     android:layout_height="wrap_content">
232
233                     <LinearLayout
234                         android:orientation="vertical"
235                         android:layout_width="wrap_content"
236                         android:layout_height="wrap_content">
237
238                         <CheckBox android:id="@+id/on_sunday"
239                             android:layout_width="wrap_content"
240                             android:layout_height="wrap_content" />
241
242                         <TextView
243                             android:text="@string/sunday_letter"
244                             android:textStyle="bold"
245                             android:paddingLeft="3dip"
246                             android:layout_width="wrap_content"
247                             android:layout_height="wrap_content" />
248                     </LinearLayout>
249
250                     <LinearLayout
251                         android:orientation="vertical"
252                         android:layout_width="wrap_content"
253                         android:layout_height="wrap_content">
254
255                         <CheckBox android:id="@+id/on_monday"
256                             android:layout_width="wrap_content"
257                             android:layout_height="wrap_content" />
258
259                         <TextView
260                             android:text="@string/monday_letter"
261                             android:textStyle="bold"
262                             android:paddingLeft="3dip"
263                             android:layout_width="wrap_content"
264                             android:layout_height="wrap_content" />
265                     </LinearLayout>
266
267                     <LinearLayout
268                         android:orientation="vertical"
269                         android:layout_width="wrap_content"
270                         android:layout_height="wrap_content">
271
272                         <CheckBox android:id="@+id/on_tuesday"
273                             android:layout_width="wrap_content"
274                             android:layout_height="wrap_content" />
275
276                         <TextView
277                             android:text="@string/tuesday_letter"
278                             android:textStyle="bold"
279                             android:paddingLeft="3dip"
280                             android:layout_width="wrap_content"
281                             android:layout_height="wrap_content" />
282                     </LinearLayout>
283
284                     <LinearLayout
285                         android:orientation="vertical"
286                         android:layout_width="wrap_content"
287                         android:layout_height="wrap_content">
288
289                         <CheckBox android:id="@+id/on_wednesday"
290                             android:layout_width="wrap_content"
291                             android:layout_height="wrap_content" />
292
293                         <TextView
294                             android:text="@string/wednesday_letter"
295                             android:textStyle="bold"
296                             android:paddingLeft="3dip"
297                             android:layout_width="wrap_content"
298                             android:layout_height="wrap_content" />
299                     </LinearLayout>
300
301                     <LinearLayout
302                         android:orientation="vertical"
303                         android:layout_width="wrap_content"
304                         android:layout_height="wrap_content">
305
306                         <CheckBox android:id="@+id/on_thursday"
307                             android:layout_width="wrap_content"
308                             android:layout_height="wrap_content" />
309
310                         <TextView
311                             android:text="@string/thursday_letter"
312                             android:textStyle="bold"
313                             android:paddingLeft="3dip"
314                             android:layout_width="wrap_content"
315                             android:layout_height="wrap_content" />
316                     </LinearLayout>
317
318                     <LinearLayout
319                         android:orientation="vertical"
320                         android:layout_width="wrap_content"
321                         android:layout_height="wrap_content">
322
323                         <CheckBox android:id="@+id/on_friday"
324                             android:layout_width="wrap_content"
325                             android:layout_height="wrap_content" />
326
327                         <TextView
328                             android:text="@string/friday_letter"
329                             android:textStyle="bold"
330                             android:paddingLeft="3dip"
331                             android:layout_width="wrap_content"
332                             android:layout_height="wrap_content" />
333                     </LinearLayout>
334
335                     <LinearLayout
336                         android:orientation="vertical"
337                         android:layout_width="wrap_content"
338                         android:layout_height="wrap_content">
339
340                         <CheckBox android:id="@+id/on_saturday"
341                             android:layout_width="wrap_content"
342                             android:layout_height="wrap_content" />
343
344                         <TextView
345                             android:text="@string/saturday_letter"
346                             android:textStyle="bold"
347                             android:paddingLeft="3dip"
348                             android:layout_width="wrap_content"
349                             android:layout_height="wrap_content" />
350                     </LinearLayout>
351                 </LinearLayout>
352             </TableRow>
353
354             <TableRow android:id="@+id/month_row">
355                 <TextView
356                     android:text="@string/repeat_on_label"
357                     android:gravity="right|top"
358                     android:paddingRight="10dip"
359                     android:layout_width="wrap_content"
360                     android:layout_height="wrap_content" />
361
362                 <RadioGroup android:id="@+id/repeat_on_radio_group"
363                     android:layout_width="fill_parent"
364                     android:layout_height="wrap_content"
365                     android:orientation="vertical">
366
367                     <RadioButton android:id="@+id/day_of_week" />
368                     <RadioButton android:id="@+id/day_of_month" />
369                 </RadioGroup>
370             </TableRow>
371
372             <TableRow android:id="@+id/until_row">
373                 <LinearLayout
374                     android:orientation="horizontal"
375                     android:gravity="right"
376                     android:layout_width="wrap_content"
377                     android:layout_height="wrap_content">
378
379                     <CheckBox android:id="@+id/until"
380                         android:layout_width="wrap_content"
381                         android:layout_height="wrap_content"
382                         android:text="@string/until" />
383                 </LinearLayout>
384
385                 <com.android.calendar.DateSpinner android:id="@+id/until_spinner"
386                     android:layout_width="fill_parent"
387                     android:layout_height="wrap_content" />
388             </TableRow>
389
390             <ImageView android:id="@+id/repeats_divider" android:scaleType="fitXY"
391                 android:src="@drawable/section_divider"
392                 android:layout_marginTop="4dip"
393                 android:layout_marginBottom="4dip"
394                 android:layout_width="fill_parent"
395                 android:layout_height="wrap_content" />
396
397             <TableRow>
398                 <TextView android:id="@+id/notes_label"
399                     android:text="@string/notes_label"
400                     android:gravity="right|top"
401                     android:textStyle="bold"
402                     android:paddingRight="10dip"
403                     android:layout_width="wrap_content"
404                     android:layout_height="wrap_content" />
405
406                 <EditText android:id="@+id/notes"
407                     android:layout_width="fill_parent"
408                     android:layout_height="wrap_content" />
409             </TableRow>
410
411             <TableRow>
412                 <LinearLayout
413                     android:orientation="horizontal"
414                     android:layout_width="fill_parent"
415                     android:layout_height="wrap_content"
416                     android:layout_column="1">
417
418                     <Button android:id="@+id/done"
419                         android:layout_marginTop="8dip"
420                         android:layout_width="wrap_content"
421                         android:layout_height="wrap_content"
422                         android:text="@string/done_label" />
423
424                     <Button android:id="@+id/options"
425                         android:layout_marginTop="8dip"
426                         android:layout_width="wrap_content"
427                         android:layout_height="wrap_content"
428                         android:text="@string/more_options_label" />
429                 </LinearLayout>
430             </TableRow>
431         </TableLayout>
432     </LinearLayout>
433 </ScrollView>