Updated CardDAV contacts should now update in the contact list.
[acal.git] / res / layout / event_edit.xml
blob0c179798d87c4296aa9849f8d8fdc403577f4ad9
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" >
8         <LinearLayout
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" >
14                 <!-- Colour bar -->
15                 <LinearLayout
16                         android:id="@+id/EventEditColourBar"
17                         android:layout_width="13sp"
18                         android:layout_height="fill_parent"
19                         android:background="#704080f0" />
20                 <ScrollView
21                         android:layout_width="fill_parent"
22                         android:layout_height="wrap_content"
23                         android:layout_weight="1"
24                         android:fillViewport="true" >
25                         <RelativeLayout
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" >
31                                 <!-- Event Name -->
32                                 <EditText
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 -->
42                                 <RelativeLayout
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" >
48                                         <!-- From content -->
49                                         <LinearLayout
50                                                 android:id="@+id/EventFromContent"
51                                                 android:layout_width="fill_parent"
52                                                 android:layout_height="wrap_content"
53                                                 android:paddingBottom="3sp" >
54                                                 <TextView
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" />
61                                                 <LinearLayout
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" >
67                                                         <Button
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" />
74                                                 </LinearLayout>
75                                         </LinearLayout>
76                                         <!-- Until Content -->
77                                         <LinearLayout
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" >
83                                                 <!-- Until Label -->
84                                                 <TextView
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" />
90                                                 <LinearLayout
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" >
96                                                         <Button
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" />
104                                                 </LinearLayout>
105                                         </LinearLayout>
106                                 </RelativeLayout>
107                                 <!-- Location Label and Button -->
108                                 <RelativeLayout
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 -->
114                                         <TextView
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" />
120                                         <EditText
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" />
129                                 </RelativeLayout>
130                                 <!-- End location label and button -->
131                                 <RelativeLayout
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 -->
140                                         <TextView
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" />
146                                         <EditText
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" />
156                                 </RelativeLayout>
157                                 <RelativeLayout
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" >
163                                         <LinearLayout
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" >
172                                                 <Button
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" />
179                                         </LinearLayout>
180                                         <TableLayout
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" >
185                                         </TableLayout>
186                                 </RelativeLayout>
187                                 <LinearLayout
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 -->
194                                         <LinearLayout
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" >
201                                                 <Button
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" />
208                                         </LinearLayout>
209                                 </LinearLayout>
210                                 <!-- Collection Selection Button -->
211                                 <LinearLayout
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" >
221                                         <Button
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" />
227                                 </LinearLayout>
228                         </RelativeLayout>
229                 </ScrollView>
230         </LinearLayout>
231         <LinearLayout
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" >
237                 <!-- Colour bar -->
238                 <LinearLayout
239                         android:id="@+id/EventEditColourBarBottom"
240                         android:layout_width="13sp"
241                         android:layout_height="fill_parent"
242                         android:background="#704080f0" />
243                 <LinearLayout
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" >
249                         <LinearLayout
250                                 android:layout_width="wrap_content"
251                                 android:layout_height="wrap_content"
252                                 android:background="@color/themed_button_colour" >
253                                 <Button
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" />
262                         </LinearLayout>
263                 </LinearLayout>
264                 <LinearLayout
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" >
270                         <LinearLayout
271                                 android:layout_width="wrap_content"
272                                 android:layout_height="wrap_content"
273                                 android:background="@color/themed_button_colour" >
274                                 <Button
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" />
283                         </LinearLayout>
284                 </LinearLayout>
285         </LinearLayout>
286 </LinearLayout>