Language updates, including new translation to Slovakian
[acal.git] / res / layout / todo_edit.xml
blobcbe247c1efb964b6ea7fe60c03111ac120b5e572
1 <?xml version="1.0" encoding="utf-8"?>
2 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3         android:id="@+id/TodoEditLayout"
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/TodoEditBelowTitleLayout"
10                 android:layout_width="match_parent"
11                 android:layout_height="0dp"
12                 android:layout_weight="1"
13                 android:orientation="horizontal" >
14                 <!-- Colour bar -->
15                 <LinearLayout
16                         android:id="@+id/TodoEditColourBar"
17                         android:layout_width="13sp"
18                         android:layout_height="fill_parent"
19                         android:background="#704080f0" >
20                 </LinearLayout>
21                 <ScrollView
22                         android:layout_width="0dp"
23                         android:layout_height="wrap_content"
24                         android:layout_weight="1" >
25                         <RelativeLayout
26                                 android:id="@+id/TodoEditDataLayout"
27                                 android:layout_width="fill_parent"
28                                 android:layout_height="wrap_content"
29                                 android:orientation="vertical" >
30                                 <!-- Todo Name -->
31                                 <EditText
32                                         android:id="@+id/TodoName"
33                                         android:layout_width="fill_parent"
34                                         android:layout_height="wrap_content"
35                                         android:layout_marginBottom="1dp"
36                                         android:hint="@string/todo_name_hint"
37                                         android:inputType="textCapSentences|textAutoCorrect|textEmailSubject"
38                                         android:textSize="24sp" >
39                                         <requestFocus />
40                                 </EditText>
41                                 <EditText
42                                         android:id="@+id/TodoNotesContent"
43                                         style="@style/todo_view_content"
44                                         android:layout_width="fill_parent"
45                                         android:layout_height="wrap_content"
46                                         android:layout_below="@+id/TodoName"
47                                         android:layout_marginBottom="1dp"
48                                         android:gravity="top"
49                                         android:hint="@string/todo_description_hint"
50                                         android:inputType="textMultiLine|textCapSentences|textLongMessage|textAutoCorrect"
51                                         android:minLines="3"
52                                         android:minWidth="100sp" >
53                                 </EditText>
54                                 <RelativeLayout
55                                         android:id="@+id/TodoDatesLayout"
56                                         android:layout_width="fill_parent"
57                                         android:layout_height="wrap_content"
58                                         android:layout_below="@+id/TodoNotesContent"
59                                         android:orientation="vertical"
60                                         android:paddingBottom="0sp" >
61                                         <!-- Until Content -->
62                                         <LinearLayout
63                                                 android:id="@+id/TodoUntilLayout"
64                                                 android:layout_width="fill_parent"
65                                                 android:layout_height="wrap_content"
66                                                 android:paddingBottom="3sp" >
67                                                 <!-- Until Label -->
68                                                 <TextView
69                                                         android:id="@+id/TodoDueLabel"
70                                                         style="@style/todo_view_label"
71                                                         android:layout_width="70dp"
72                                                         android:layout_height="fill_parent"
73                                                         android:gravity="center_vertical"
74                                                         android:text="@string/DuePrompt" />
75                                                 <LinearLayout
76                                                         android:layout_width="0dp"
77                                                         android:layout_height="wrap_content"
78                                                         android:layout_marginRight="10sp"
79                                                         android:layout_weight="3"
80                                                         android:background="@color/themed_button_colour" >
81                                                         <Button
82                                                                 android:id="@+id/TodoDueDateTime"
83                                                                 style="@style/themed_button_big"
84                                                                 android:layout_width="fill_parent"
85                                                                 android:layout_height="wrap_content"
86                                                                 android:minHeight="30sp"
87                                                                 android:text="@string/placeholderDateAndTime" />
88                                                 </LinearLayout>
89                                         </LinearLayout>
90                                         <!-- From content -->
91                                         <LinearLayout
92                                                 android:id="@+id/TodoFromLayout"
93                                                 android:layout_width="fill_parent"
94                                                 android:layout_height="wrap_content"
95                                                 android:layout_below="@+id/TodoUntilLayout"
96                                                 android:paddingBottom="3sp" >
97                                                 <TextView
98                                                         android:id="@+id/TodoFromLabel"
99                                                         style="@style/todo_view_label"
100                                                         android:layout_width="70dp"
101                                                         android:layout_height="fill_parent"
102                                                         android:gravity="center_vertical"
103                                                         android:text="@string/TodoFromPrompt" />
104                                                 <LinearLayout
105                                                         android:layout_width="0dp"
106                                                         android:layout_height="wrap_content"
107                                                         android:layout_marginRight="10sp"
108                                                         android:layout_weight="3"
109                                                         android:background="@color/themed_button_colour" >
110                                                         <Button
111                                                                 android:id="@+id/TodoFromDateTime"
112                                                                 style="@style/themed_button_big"
113                                                                 android:layout_width="fill_parent"
114                                                                 android:layout_height="wrap_content"
115                                                                 android:minHeight="30sp"
116                                                                 android:text="@string/placeholderDateAndTime" />
117                                                 </LinearLayout>
118                                         </LinearLayout>
119                                         <!-- Completed content -->
120                                         <RelativeLayout
121                                                 android:id="@+id/TodoCompletedLayout"
122                                                 android:layout_width="fill_parent"
123                                                 android:layout_height="wrap_content"
124                                                 android:layout_below="@+id/TodoFromLayout" >
125                                                 <LinearLayout
126                                                         android:id="@+id/TodoCompletedDatesLayout"
127                                                         android:layout_width="fill_parent"
128                                                         android:layout_height="wrap_content"
129                                                         android:paddingBottom="2sp" >
130                                                         <TextView
131                                                                 android:id="@+id/TodoCompletedLabel"
132                                                                 style="@style/todo_view_label"
133                                                                 android:layout_width="70dp"
134                                                                 android:layout_height="fill_parent"
135                                                                 android:layout_gravity="center_vertical"
136                                                                 android:gravity="center_vertical"
137                                                                 android:text="@string/CompletedPrompt" />
138                                                         <LinearLayout
139                                                                 android:layout_width="0dp"
140                                                                 android:layout_height="wrap_content"
141                                                                 android:layout_marginRight="10sp"
142                                                                 android:layout_weight="3"
143                                                                 android:background="@color/themed_button_colour" >
144                                                                 <Button
145                                                                         android:id="@+id/TodoCompletedDateTime"
146                                                                         style="@style/themed_button_big"
147                                                                         android:layout_width="fill_parent"
148                                                                         android:layout_height="wrap_content"
149                                                                         android:minHeight="30sp"
150                                                                         android:text="@string/placeholderDateAndTime" />
151                                                         </LinearLayout>
152                                                 </LinearLayout>
153                                                 <LinearLayout
154                                                         android:id="@+id/TodoCompletedPercent"
155                                                         android:layout_width="fill_parent"
156                                                         android:layout_height="wrap_content"
157                                                         android:layout_below="@+id/TodoCompletedDatesLayout"
158                                                         android:layout_centerVertical="true"
159                                                         android:paddingBottom="0sp" >
160                                                         <TextView
161                                                                 android:id="@+id/TodoPercentCompleteText"
162                                                                 style="@style/todo_view_label"
163                                                                 android:layout_width="70dp"
164                                                                 android:layout_height="fill_parent"
165                                                                 android:gravity="center_vertical|center_horizontal"
166                                                                 android:text="70%" />
167                                                         <SeekBar
168                                                                 android:id="@+id/TodoPercentCompleteBar"
169                                                                 android:layout_width="fill_parent"
170                                                                 android:layout_height="wrap_content"
171                                                                 android:layout_gravity="center_vertical"
172                                                                 android:layout_marginRight="10sp"
173                                                                 android:indeterminate="false"
174                                                                 android:max="100" />
175                                                 </LinearLayout>
176                                         </RelativeLayout>
177                                 </RelativeLayout>
178                                 <EditText
179                                         android:id="@+id/TodoLocationContent"
180                                         style="@style/todo_view_content"
181                                         android:layout_width="fill_parent"
182                                         android:layout_height="wrap_content"
183                                         android:layout_below="@id/TodoDatesLayout"
184                                         android:hint="@string/todo_location_hint"
185                                         android:inputType="textCapSentences|textPostalAddress|textAutoCorrect" />
186                                 <RelativeLayout
187                                         android:id="@+id/TodoAlarmsLayout"
188                                         android:layout_width="fill_parent"
189                                         android:layout_height="wrap_content"
190                                         android:layout_below="@id/TodoLocationContent"
191                                         android:paddingBottom="5sp" >
192                                         <LinearLayout
193                                                 android:id="@+id/TodoAlarmsTopLayout"
194                                                 android:layout_width="fill_parent"
195                                                 android:layout_height="wrap_content"
196                                                 android:layout_gravity="left|center_vertical"
197                                                 android:layout_marginLeft="15sp"
198                                                 android:layout_marginRight="15sp"
199                                                 android:background="@color/themed_button_colour" >
200                                                 <Button
201                                                         android:id="@+id/TodoAlarmsButton"
202                                                         style="@style/themed_button"
203                                                         android:layout_width="fill_parent"
204                                                         android:layout_height="wrap_content"
205                                                         android:text="@string/Add_Alarm" />
206                                         </LinearLayout>
207                                         <TableLayout
208                                                 android:id="@+id/alarms_list_table"
209                                                 android:layout_width="fill_parent"
210                                                 android:layout_height="fill_parent"
211                                                 android:layout_below="@+id/TodoAlarmsTopLayout" >
212                                         </TableLayout>
213                                 </RelativeLayout>
214                                 <LinearLayout
215                                         android:id="@+id/TodoRepeatsLayout"
216                                         android:layout_width="fill_parent"
217                                         android:layout_height="wrap_content"
218                                         android:layout_below="@+id/TodoAlarmsLayout"
219                                         android:paddingBottom="5sp" >
220                                         <LinearLayout
221                                                 android:layout_width="fill_parent"
222                                                 android:layout_height="wrap_content"
223                                                 android:layout_gravity="left|center_vertical"
224                                                 android:layout_marginLeft="15sp"
225                                                 android:layout_marginRight="15sp"
226                                                 android:background="@color/themed_button_colour" >
227                                                 <Button
228                                                         android:id="@+id/TodoRepeatsContent"
229                                                         style="@style/todo_view_button"
230                                                         android:layout_width="fill_parent"
231                                                         android:layout_height="wrap_content"
232                                                         android:layout_gravity="right|center_vertical"
233                                                         android:text="@string/setRepeatRule" />
234                                         </LinearLayout>
235                                 </LinearLayout>
236                                 <!-- calandar select thingy -->
237                                 <LinearLayout
238                                         android:id="@+id/TodoCollectionLayout"
239                                         android:layout_width="fill_parent"
240                                         android:layout_height="wrap_content"
241                                         android:layout_below="@id/TodoRepeatsLayout"
242                                         android:paddingBottom="3sp" >
243                                         <TextView
244                                                 android:id="@+id/TodoCollectionLabel"
245                                                 style="@style/gen_label"
246                                                 android:layout_width="wrap_content"
247                                                 android:layout_height="wrap_content"
248                                                 android:layout_gravity="left|center_vertical"
249                                                 android:maxLines="1"
250                                                 android:paddingRight="3sp"
251                                                 android:text="@string/CollectionPrompt" />
252                                         <LinearLayout
253                                                 android:id="@+id/TodoEditCollectionLayout"
254                                                 android:layout_width="fill_parent"
255                                                 android:layout_height="wrap_content"
256                                                 android:layout_marginRight="5sp"
257                                                 android:background="@color/themed_button_colour" >
258                                                 <Spinner
259                                                         android:id="@+id/TodoEditCollectionSelect"
260                                                         style="@style/themed_button_big"
261                                                         android:layout_width="0dp"
262                                                         android:layout_height="30sp"
263                                                         android:layout_gravity="left|center_vertical"
264                                                         android:layout_weight="1"
265                                                         android:ellipsize="end"
266                                                         android:maxLines="1" />
267                                         </LinearLayout>
268                                 </LinearLayout>
269                                 <!-- calandar select thingy end -->
270                         </RelativeLayout>
271                 </ScrollView>
272         </LinearLayout>
273         <LinearLayout
274                 android:id="@+id/button_layout"
275                 android:layout_width="fill_parent"
276                 android:layout_height="36dp"
277                 android:layout_gravity="bottom"
278                 android:background="@color/bottom_bg"
279                 android:baselineAligned="true"
280                 android:gravity="bottom" >
281                 <!-- Colour bar -->
282                 <LinearLayout
283                         android:id="@+id/EventEditColourBarBottom"
284                         android:layout_width="13sp"
285                         android:layout_height="fill_parent"
286                         android:background="#704080f0" />
287                 <LinearLayout
288                         android:layout_width="fill_parent"
289                         android:layout_height="wrap_content"
290                         android:layout_weight="1"
291                         android:gravity="center"
292                         android:padding="0sp" >
293                         <LinearLayout
294                                 android:layout_width="wrap_content"
295                                 android:layout_height="wrap_content"
296                                 android:background="@color/themed_button_colour"
297                                 android:padding="0sp" >
298                                 <Button
299                                         android:id="@+id/todo_apply_button"
300                                         style="@style/themed_bottom_button"
301                                         android:layout_width="wrap_content"
302                                         android:layout_height="wrap_content"
303                                         android:layout_gravity="center"
304                                         android:includeFontPadding="true"
305                                         android:padding="0sp"
306                                         android:text="@string/Apply"
307                                         android:width="90sp" />
308                         </LinearLayout>
309                 </LinearLayout>
310                 <LinearLayout
311                         android:layout_width="fill_parent"
312                         android:layout_height="wrap_content"
313                         android:layout_weight="1"
314                         android:gravity="center"
315                         android:padding="0sp" >
316                         <LinearLayout
317                                 android:layout_width="wrap_content"
318                                 android:layout_height="wrap_content"
319                                 android:background="@color/themed_button_colour"
320                                 android:padding="0sp" >
321                                 <Button
322                                         android:id="@+id/todo_cancel_button"
323                                         style="@style/themed_bottom_button"
324                                         android:layout_width="wrap_content"
325                                         android:layout_height="wrap_content"
326                                         android:layout_gravity="center"
327                                         android:includeFontPadding="true"
328                                         android:padding="0sp"
329                                         android:text="@string/cancel"
330                                         android:width="90sp" />
331                         </LinearLayout>
332                 </LinearLayout>
333         </LinearLayout>
334 </LinearLayout>