• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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="match_parent"
20    android:layout_height="match_parent">
21
22    <LinearLayout android:id="@+id/event"
23        android:background="#fafafa"
24        android:orientation="vertical"
25        android:layout_width="match_parent"
26        android:layout_height="match_parent">
27
28        <!-- WHAT -->
29        <LinearLayout
30            android:orientation="vertical"
31            android:layout_width="match_parent"
32            android:layout_height="wrap_content"
33            style="@style/EditEvent_Layout">
34
35            <TextView android:id="@+id/what_label"
36                android:layout_width="wrap_content"
37                android:layout_height="wrap_content"
38                android:text="@string/what_label"
39                style="@style/TextAppearance.EditEvent_Label"/>
40
41            <EditText android:id="@+id/title"
42                android:layout_width="match_parent"
43                android:layout_height="wrap_content"
44                android:hint="@string/hint_what"
45                android:capitalize="sentences"
46                android:contentDescription="@string/what_label"/>
47        </LinearLayout>
48
49        <!-- WHEN -->
50        <LinearLayout android:id="@+id/when_container"
51            android:orientation="vertical"
52            android:layout_width="match_parent"
53            android:layout_height="wrap_content"
54            style="@style/EditEvent_Layout">
55
56            <TextView android:id="@+id/from_label"
57                android:layout_width="wrap_content"
58                android:layout_height="wrap_content"
59                android:text="@string/edit_event_from_label"
60                style="@style/TextAppearance.EditEvent_Label"/>
61
62            <LinearLayout
63                android:orientation="horizontal"
64                android:layout_width="match_parent"
65                android:layout_height="wrap_content">
66
67                <Button android:id="@+id/start_date"
68                    android:layout_width="0px"
69                    android:layout_height="wrap_content"
70                    android:layout_weight="7"
71                    android:gravity="left|center_vertical"
72                    android:contentDescription="@string/content_description_edit_event_from_date"
73                    style="?android:attr/textAppearanceMediumInverse"/>
74
75                <Button android:id="@+id/start_time"
76                    android:layout_width="0px"
77                    android:layout_height="wrap_content"
78                    android:layout_weight="4"
79                    android:gravity="left|center_vertical"
80                    android:contentDescription="@string/content_description_edit_event_from_time"
81                    style="?android:attr/textAppearanceMediumInverse"/>
82
83            </LinearLayout>
84
85            <LinearLayout
86                android:orientation="horizontal"
87                android:layout_width="match_parent"
88                android:layout_height="wrap_content"
89                android:paddingRight="3dip"
90                android:paddingLeft="3dip" >
91
92                <TextView android:id="@+id/start_date_home"
93                    android:layout_width="wrap_content"
94                    android:layout_height="wrap_content"
95                    android:layout_weight="1"
96                    android:gravity="left"
97                    android:visibility="gone"
98                    style="@style/TextAppearance.EditEvent_homeTime"/>
99
100                <TextView android:id="@+id/start_time_home"
101                    android:layout_width="wrap_content"
102                    android:layout_height="wrap_content"
103                    android:layout_weight="1"
104                    android:gravity="right"
105                    android:visibility="gone"
106                    style="@style/TextAppearance.EditEvent_homeTime"/>
107
108            </LinearLayout>
109
110            <TextView android:id="@+id/to_label"
111                android:layout_width="wrap_content"
112                android:layout_height="wrap_content"
113                android:text="@string/edit_event_to_label"
114                style="@style/TextAppearance.EditEvent_Label"/>
115
116            <LinearLayout
117                android:orientation="horizontal"
118                android:layout_width="match_parent"
119                android:layout_height="wrap_content">
120
121                <Button android:id="@+id/end_date"
122                    android:layout_width="0px"
123                    android:layout_height="wrap_content"
124                    android:layout_weight="7"
125                    android:gravity="left|center_vertical"
126                    android:contentDescription="@string/content_description_edit_event_to_date"
127                    style="?android:attr/textAppearanceMediumInverse"/>
128
129                <Button android:id="@+id/end_time"
130                    android:layout_width="0px"
131                    android:layout_height="wrap_content"
132                    android:layout_weight="4"
133                    android:gravity="left|center_vertical"
134                    android:contentDescription="@string/content_description_edit_event_to_time"
135                    style="?android:attr/textAppearanceMediumInverse"/>
136            </LinearLayout>
137
138            <LinearLayout
139                android:orientation="horizontal"
140                android:layout_width="match_parent"
141                android:layout_height="wrap_content"
142                android:paddingRight="3dip"
143                android:paddingLeft="3dip" >
144
145                <TextView android:id="@+id/end_date_home"
146                    android:layout_width="wrap_content"
147                    android:layout_height="wrap_content"
148                    android:layout_weight="1"
149                    android:gravity="left"
150                    android:visibility="gone"
151                    style="@style/TextAppearance.EditEvent_homeTime"/>
152
153                <TextView android:id="@+id/end_time_home"
154                    android:layout_width="wrap_content"
155                    android:layout_height="wrap_content"
156                    android:layout_weight="1"
157                    android:gravity="right"
158                    android:visibility="gone"
159                    style="@style/TextAppearance.EditEvent_homeTime"/>
160
161            </LinearLayout>
162
163            <TextView android:id="@+id/timezone_label"
164                android:layout_width="wrap_content"
165                android:layout_height="wrap_content"
166                android:text="@string/timezone_label"
167                style="@style/TextAppearance.EditEvent_Label"/>
168
169            <Button android:id="@+id/timezone"
170                android:layout_width="match_parent"
171                android:layout_height="wrap_content"
172                android:gravity="left|center_vertical"
173                android:contentDescription="@string/timezone_label"
174                style="?android:attr/textAppearanceMediumInverse"/>
175
176            <LinearLayout
177                android:layout_width="match_parent"
178                android:layout_height="wrap_content"
179                android:gravity="center_vertical|right"
180                android:paddingBottom="5dip">
181                <TextView
182                    android:layout_width="wrap_content"
183                    android:layout_height="wrap_content"
184                    android:text="@string/edit_event_all_day_label"
185                    android:paddingTop="1dip"
186                    android:paddingRight="7dip"
187                    style="?android:attr/textAppearanceMediumInverse"/>
188                <CheckBox android:id="@+id/is_all_day"
189                    android:layout_width="wrap_content"
190                    android:layout_height="wrap_content"
191                    android:paddingTop="15dip"
192                    android:paddingBottom="15dip"
193                    android:paddingRight="1dip"
194                    android:contentDescription="@string/edit_event_all_day_label"/>
195            </LinearLayout>
196        </LinearLayout>
197
198        <!-- WHERE -->
199        <View
200            android:layout_width="match_parent"
201            android:layout_height="1dip"
202            android:background="@android:drawable/divider_horizontal_bright"
203        />
204        <LinearLayout android:id="@+id/where_container"
205            android:orientation="vertical"
206            android:layout_width="match_parent"
207            android:layout_height="wrap_content"
208            style="@style/EditEvent_Layout">
209
210            <TextView
211                android:layout_width="wrap_content"
212                android:layout_height="wrap_content"
213                android:text="@string/where_label"
214                style="@style/TextAppearance.EditEvent_Label"/>
215
216            <EditText android:id="@+id/location"
217                android:layout_width="match_parent"
218                android:layout_height="wrap_content"
219                android:hint="@string/hint_where"
220                android:capitalize="sentences"
221                android:contentDescription="@string/where_label"/>
222        </LinearLayout>
223
224        <!-- DESCRIPTION -->
225        <LinearLayout
226            android:orientation="vertical"
227            android:layout_width="match_parent"
228            android:layout_height="wrap_content"
229            style="@style/EditEvent_Layout">
230
231            <TextView android:id="@+id/description_label"
232                android:layout_width="wrap_content"
233                android:layout_height="wrap_content"
234                android:text="@string/description_label"
235                style="@style/TextAppearance.EditEvent_Label"/>
236
237            <EditText android:id="@+id/description"
238                android:layout_width="match_parent"
239                android:layout_height="wrap_content"
240                android:hint="@string/hint_description"
241                android:capitalize="sentences"
242                android:contentDescription="@string/description_label"/>
243        </LinearLayout>
244
245        <!-- CALENDARS -->
246        <LinearLayout android:id="@+id/calendar_group"
247            android:orientation="vertical"
248            android:layout_width="match_parent"
249            android:layout_height="wrap_content"
250            style="@style/EditEvent_Layout">
251
252            <View
253                android:layout_width="match_parent"
254                android:layout_height="1dip"
255                android:background="@android:drawable/divider_horizontal_dark"
256            />
257
258            <TextView
259                android:layout_width="wrap_content"
260                android:layout_height="wrap_content"
261                android:text="@string/edit_event_calendar_label"
262                style="@style/TextAppearance.EditEvent_Label"/>
263
264            <Spinner android:id="@+id/calendars"
265                android:layout_width="match_parent"
266                android:layout_height="wrap_content"
267                android:prompt="@string/edit_event_calendar_label"
268                android:contentDescription="@string/edit_event_calendar_label"/>
269        </LinearLayout>
270
271        <!-- GUESTS/ATTENDEES -->
272        <LinearLayout android:id="@+id/attendees_group"
273            android:orientation="vertical"
274            android:layout_width="match_parent"
275            android:layout_height="wrap_content"
276            style="@style/EditEvent_Layout">
277
278            <TextView
279                android:layout_width="wrap_content"
280                android:layout_height="wrap_content"
281                android:text="@string/attendees_label"
282                style="@style/TextAppearance.EditEvent_Label"/>
283
284            <MultiAutoCompleteTextView android:id="@+id/attendees"
285                android:layout_width="match_parent"
286                android:layout_height="wrap_content"
287                android:inputType="textEmailAddress|textMultiLine"
288                android:hint="@string/hint_attendees"
289                android:layout_marginTop="6dip"
290                android:layout_marginBottom="6dip"
291                android:imeOptions="actionNext"
292                android:contentDescription="@string/attendees_label"/>
293        </LinearLayout>
294
295        <!-- REPEATS -->
296        <LinearLayout
297            android:orientation="vertical"
298            android:layout_width="match_parent"
299            android:layout_height="wrap_content"
300            style="@style/EditEvent_Layout">
301
302            <TextView android:id="@+id/repeats_label"
303                android:layout_width="wrap_content"
304                android:layout_height="wrap_content"
305                android:text="@string/repeats_label"
306                style="@style/TextAppearance.EditEvent_Label"/>
307
308            <Spinner android:id="@+id/repeats"
309                android:layout_width="match_parent"
310                android:layout_height="wrap_content"
311                android:prompt="@string/repeats_label"
312                android:contentDescription="@string/repeats_label"/>
313        </LinearLayout>
314
315        <!-- MORE OPTIONS -->
316        <LinearLayout android:id="@+id/extra_options_container"
317            android:orientation="vertical"
318            android:layout_width="match_parent"
319            android:layout_height="wrap_content"
320            android:visibility="gone">
321
322            <!-- PRESENCE -->
323            <LinearLayout
324                android:orientation="vertical"
325                android:layout_width="match_parent"
326                android:layout_height="wrap_content"
327                style="@style/EditEvent_Layout">
328
329                <TextView android:id="@+id/presence_label"
330                    android:layout_width="wrap_content"
331                    android:layout_height="wrap_content"
332                    android:text="@string/presence_label"
333                    style="@style/TextAppearance.EditEvent_Label"/>
334
335                <Spinner android:id="@+id/availability"
336                    android:layout_width="match_parent"
337                    android:layout_height="wrap_content"
338                    android:entries="@array/availability"
339                    android:prompt="@string/presence_label"
340                    android:contentDescription="@string/presence_label"/>
341            </LinearLayout>
342
343            <!-- PRIVACY -->
344            <LinearLayout
345                android:orientation="vertical"
346                android:layout_width="match_parent"
347                android:layout_height="wrap_content"
348                style="@style/EditEvent_Layout">
349
350                <TextView android:id="@+id/privacy_label"
351                    android:layout_width="wrap_content"
352                    android:layout_height="wrap_content"
353                    android:text="@string/privacy_label"
354                    style="@style/TextAppearance.EditEvent_Label"/>
355
356                <Spinner android:id="@+id/visibility"
357                    android:layout_width="match_parent"
358                    android:layout_height="wrap_content"
359                    android:entries="@array/visibility"
360                    android:prompt="@string/privacy_label"
361                    android:contentDescription="@string/privacy_label"/>
362            </LinearLayout>
363        </LinearLayout>
364
365        <!-- REMINDERS -->
366        <View android:id="@+id/reminders_separator"
367            android:layout_width="match_parent"
368            android:layout_height="1dip"
369            android:background="@android:drawable/divider_horizontal_dark"
370        />
371
372        <LinearLayout android:id="@+id/reminders_container"
373            android:orientation="vertical"
374            android:layout_width="match_parent"
375            android:layout_height="wrap_content"
376            style="@style/EditEvent_Layout">
377
378            <TextView android:id="@+id/reminders_label"
379                android:layout_width="wrap_content"
380                android:layout_height="wrap_content"
381                android:text="@string/reminders_label"
382                style="@style/TextAppearance.EditEvent_Label"/>
383
384            <LinearLayout android:id="@+id/reminder_items_container"
385                android:orientation="vertical"
386                android:layout_width="match_parent"
387                android:layout_height="wrap_content">
388            </LinearLayout>
389        </LinearLayout>
390        <LinearLayout
391            android:layout_width="match_parent"
392            android:layout_height="wrap_content"
393            android:gravity="center_vertical|right"
394            android:paddingBottom="5dip">
395
396            <TextView
397                android:layout_width="wrap_content"
398                android:layout_height="wrap_content"
399                android:layout_marginRight="2dip"
400                android:text="@string/add_new_reminder"
401                style="?android:attr/textAppearanceSmallInverse"/>
402
403            <ImageButton android:id="@+id/reminder_add"
404                style="@style/PlusButton"
405                android:layout_width="wrap_content"
406                android:layout_height="wrap_content"
407                android:layout_marginRight="7dip"
408                android:gravity="center_vertical|right"
409                android:contentDescription="@string/add_new_reminder"
410            />
411        </LinearLayout>
412
413        <!-- BUTTONS -->
414        <LinearLayout
415            android:orientation="horizontal"
416            android:layout_width="match_parent"
417            android:layout_height="wrap_content"
418            android:paddingTop="5dip"
419            android:paddingLeft="4dip"
420            android:paddingRight="4dip"
421            android:paddingBottom="1dip"
422            android:background="@android:drawable/bottom_bar" >
423
424            <Button android:id="@+id/save"
425                android:layout_width="0dip"
426                android:layout_height="match_parent"
427                android:layout_weight="1"
428                android:text="@string/save_label"
429            />
430
431            <Button android:id="@+id/discard"
432                android:layout_width="0dip"
433                android:layout_height="match_parent"
434                android:layout_weight="1"
435                android:text="@string/discard_label"
436            />
437
438            <Button android:id="@+id/delete"
439                android:layout_width="0dip"
440                android:layout_height="match_parent"
441                android:layout_weight="1"
442                android:text="@string/delete_label"
443            />
444        </LinearLayout>
445    </LinearLayout>
446</ScrollView>
447