• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2010 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<LinearLayout
17    xmlns:android="http://schemas.android.com/apk/res/android"
18    android:orientation="vertical"
19    android:layout_width="match_parent"
20    android:layout_height="wrap_content">
21
22    <!-- CALENDARS SELECTOR for new events -->
23    <LinearLayout
24        android:id="@+id/calendar_selector_group"
25        android:orientation="horizontal"
26        android:layout_width="match_parent"
27        android:layout_height="wrap_content"
28        android:focusable="true" >
29        <Spinner
30            android:id="@+id/calendars_spinner"
31            android:prompt="@string/edit_event_calendar_label"
32            android:layout_height="wrap_content"
33            android:layout_width="0dip"
34            android:layout_weight="1"
35            android:layout_gravity="center_vertical"
36            android:paddingBottom="10dip"
37            android:paddingTop="10dip"
38            android:layout_marginLeft="12dip"
39            android:layout_marginRight="12dip"
40            android:gravity="center_vertical" />
41        <ImageButton
42            android:id="@+id/change_color_new_event"
43            style="?android:attr/buttonBarButtonStyle"
44            android:src="@drawable/ic_menu_colorpicker_holo_dark"
45            android:contentDescription="@string/choose_event_color_label"
46            android:layout_width="48dip"
47            android:layout_height="48dip"
48            android:enabled="false"
49            android:layout_marginRight="8dip"
50            android:layout_gravity="center_vertical"
51            android:padding="8dip"
52            android:scaleType="centerInside"
53            android:visibility="invisible" />
54    </LinearLayout>
55
56    <!-- CALENDAR DISPLAY for existing events -->
57    <LinearLayout
58        android:id="@+id/calendar_group"
59        android:layout_width="match_parent"
60        android:layout_height="wrap_content"
61        android:paddingBottom="5dip"
62        android:paddingTop="5dip"
63        android:focusable="true">
64        <LinearLayout
65            android:layout_width="0dip"
66            android:layout_weight="1"
67            android:layout_height="wrap_content"
68            android:focusable="true"
69            android:orientation="vertical" >
70            <TextView
71                android:id="@+id/calendar_textview"
72                android:layout_height="wrap_content"
73                android:layout_width="match_parent"
74                android:textColor="#FFFFFFFF"
75                android:layout_marginLeft="24dip"
76                android:layout_marginRight="24dip"
77                style="@style/TextAppearance.EditEvent_Value" />
78            <TextView
79                android:id="@+id/calendar_textview_secondary"
80                android:layout_height="wrap_content"
81                android:layout_width="match_parent"
82                android:textColor="#FFFFFFFF"
83                android:layout_marginLeft="24dip"
84                android:layout_marginRight="24dip"
85                android:textSize="14sp"
86                style="@style/TextAppearance.EditEvent_Value" />
87        </LinearLayout>
88        <ImageButton
89            android:id="@+id/change_color_existing_event"
90            style="?android:attr/buttonBarButtonStyle"
91            android:src="@drawable/ic_menu_colorpicker_holo_dark"
92            android:contentDescription="@string/choose_event_color_label"
93            android:layout_width="48dip"
94            android:layout_height="48dip"
95            android:enabled="false"
96            android:layout_marginRight="8dip"
97            android:layout_gravity="center_vertical"
98            android:padding="8dip"
99            android:scaleType="centerInside"
100            android:visibility="gone"  />
101    </LinearLayout>
102
103    <!-- WHAT -->
104    <EditText
105        android:id="@+id/title"
106        style="@style/TextAppearance.EditEvent_Value"
107        android:singleLine="true"
108        android:layout_width="match_parent"
109        android:layout_height="wrap_content"
110        android:layout_marginTop="4dip"
111        android:minHeight="48dip"
112        android:hint="@string/hint_what"
113        android:capitalize="sentences"
114        android:inputType="textAutoCorrect|textCapSentences"
115        android:focusable="true" />
116
117    <!-- WHERE -->
118    <LinearLayout android:id="@+id/where_row"
119        android:orientation="vertical"
120        android:layout_width="match_parent"
121        android:layout_height="wrap_content"
122        android:layout_marginBottom="6dip"
123        android:focusable="true">
124        <AutoCompleteTextView
125            android:id="@+id/location"
126            android:singleLine="false"
127            android:layout_height="wrap_content"
128            android:layout_width="match_parent"
129            android:minHeight="48dip"
130            android:imeOptions="actionDone"
131            style="@style/TextAppearance.EditEvent_Value"
132            android:inputType="textAutoCorrect|textCapSentences"
133            android:hint="@string/hint_where" />
134    <View
135        style="@style/EditEventSeparator"/>
136    </LinearLayout>
137
138    <!-- WHEN - Read-only textview version of FROM/TO (below) -->
139    <LinearLayout
140        android:id="@+id/when_row"
141        android:visibility="gone"
142        android:orientation="vertical"
143        android:layout_width="match_parent"
144        android:layout_height="wrap_content"
145        android:minHeight="48dip"
146        android:focusable="true">
147        <TextView
148            android:id="@+id/when_label"
149            android:text="@string/when_label"
150            android:layout_height="wrap_content"
151            android:layout_width="wrap_content"
152            android:layout_marginBottom="-8dip"
153            style="@style/TextAppearance.EditEvent_LabelSmall" />
154        <TextView
155            android:id="@+id/when"
156            android:layout_height="wrap_content"
157            android:layout_width="wrap_content"
158            android:layout_marginLeft="24dip"
159            android:layout_marginRight="24dip"
160            style="@style/TextAppearance.EditEvent_Value" />
161    </LinearLayout>
162
163    <!-- FROM - Read/write version which launches the date/time pickers -->
164    <LinearLayout
165        android:id="@+id/from_row"
166        android:orientation="vertical"
167        android:layout_width="match_parent"
168        android:layout_height="wrap_content"
169        android:minHeight="64dip">
170        <TextView
171            android:id="@+id/from_label"
172            android:layout_height="wrap_content"
173            android:layout_width="match_parent"
174            android:text="@string/edit_event_from_label"
175            style="@style/TextAppearance.EditEvent_LabelSmall" />
176        <LinearLayout
177            android:layout_height="wrap_content"
178            android:layout_width="match_parent"
179            android:orientation="horizontal"
180            android:layout_marginTop="-6dip"
181            android:animateLayoutChanges="false">
182            <Button
183                android:id="@+id/start_date"
184                android:layout_width="0px"
185                android:layout_height="wrap_content"
186                android:layout_weight="7"
187                android:singleLine="true"
188                android:paddingRight="4dp"
189                android:layout_marginRight="0dp"
190                android:contentDescription="@string/accessibility_pick_start_date"
191                style="@style/TextAppearance.EditEvent_SpinnerButton" />
192            <Button
193                android:id="@+id/start_time"
194                android:layout_width="0px"
195                android:layout_height="wrap_content"
196                android:layout_weight="4"
197                android:contentDescription="@string/accessibility_pick_start_time"
198                android:layout_marginLeft="0dip"
199                style="@style/TextAppearance.EditEvent_SpinnerButton" />
200        </LinearLayout>
201    </LinearLayout>
202    <LinearLayout android:id="@+id/from_row_home_tz"
203        android:visibility="gone"
204        android:orientation="horizontal"
205        android:layout_width="match_parent"
206        android:layout_height="wrap_content"
207        android:paddingBottom="8dip"
208        android:layout_marginLeft="24dip"
209        android:layout_marginRight="16dip"
210        android:focusable="true">
211        <TextView android:id="@+id/start_date_home_tz"
212            android:layout_width="wrap_content"
213            android:layout_height="wrap_content"
214            android:layout_weight="7"
215            android:gravity="left|center_vertical"
216            style="@style/TextAppearance.EditEvent_homeTime" />
217        <TextView android:id="@+id/start_time_home_tz"
218            android:layout_width="wrap_content"
219            android:layout_height="wrap_content"
220            android:layout_weight="4"
221            android:gravity="right|center_vertical"
222            style="@style/TextAppearance.EditEvent_homeTime" />
223    </LinearLayout>
224
225    <!-- TO - Read/write version which launches the date/time pickers -->
226    <LinearLayout
227        android:id="@+id/to_row"
228        android:orientation="vertical"
229        android:layout_width="match_parent"
230        android:layout_height="wrap_content"
231        android:minHeight="64dip">
232        <TextView
233            android:id="@+id/to_label"
234            android:text="@string/edit_event_to_label"
235            android:layout_height="wrap_content"
236            android:layout_width="match_parent"
237            style="@style/TextAppearance.EditEvent_LabelSmall" />
238        <LinearLayout
239            android:orientation="horizontal"
240            android:layout_height="wrap_content"
241            android:layout_width="match_parent"
242            android:layout_marginTop="-6dip"
243            android:animateLayoutChanges="false">
244            <Button
245                android:id="@+id/end_date"
246                android:layout_width="0px"
247                android:layout_height="wrap_content"
248                android:layout_weight="7"
249                android:singleLine="true"
250                android:paddingRight="4dp"
251                android:layout_marginRight="0dp"
252                android:contentDescription="@string/accessibility_pick_end_date"
253                style="@style/TextAppearance.EditEvent_SpinnerButton" />
254            <Button
255                android:id="@+id/end_time"
256                android:layout_width="0px"
257                android:layout_height="wrap_content"
258                android:layout_weight="4"
259                android:contentDescription="@string/accessibility_pick_end_time"
260                android:layout_marginLeft="0dip"
261                style="@style/TextAppearance.EditEvent_SpinnerButton" />
262        </LinearLayout>
263    </LinearLayout>
264    <LinearLayout
265        android:id="@+id/to_row_home_tz"
266        android:visibility="gone"
267        android:focusable="true"
268        android:orientation="horizontal"
269        android:layout_width="match_parent"
270        android:layout_height="wrap_content"
271        android:paddingBottom="8dip"
272        android:layout_marginLeft="24dip"
273        android:layout_marginRight="16dip">
274        <TextView android:id="@+id/end_date_home_tz"
275            android:layout_width="wrap_content"
276            android:layout_height="wrap_content"
277            android:layout_weight="7"
278            android:gravity="left|center_vertical"
279            style="@style/TextAppearance.EditEvent_homeTime" />
280        <TextView android:id="@+id/end_time_home_tz"
281            android:layout_width="wrap_content"
282            android:layout_height="wrap_content"
283            android:layout_weight="4"
284            android:gravity="right|center_vertical"
285            style="@style/TextAppearance.EditEvent_homeTime" />
286    </LinearLayout>
287
288    <!-- ALL DAY -->
289    <LinearLayout
290        android:id="@+id/all_day_row"
291        android:orientation="horizontal"
292        android:gravity="center_vertical"
293        android:layout_marginTop="4dip"
294        android:layout_width="match_parent"
295        android:layout_height="wrap_content"
296        android:minHeight="24dip">
297        <CheckBox
298            android:id="@+id/is_all_day"
299            android:layout_height="match_parent"
300            android:layout_width="wrap_content"
301            android:layout_gravity="center_vertical"
302            android:gravity="center_vertical"
303            android:layout_marginLeft="16dip"
304            android:layout_marginRight="0dip"
305            android:contentDescription="@string/accessibility_all_day"/>
306        <TextView
307            android:id="@+id/is_all_day_label"
308            android:text="@string/edit_event_all_day_label"
309            android:layout_height="wrap_content"
310            android:layout_width="0dip"
311            android:layout_weight="1"
312            android:layout_gravity="center_vertical|left"
313            android:gravity="center_vertical|left"
314            style="@style/TextAppearance.EditEvent_Small" />
315    </LinearLayout>
316
317    <!-- TIME ZONE - Read-only textview version -->
318    <LinearLayout
319        android:id="@+id/timezone_textview_row"
320        android:visibility="gone"
321        android:orientation="vertical"
322        android:layout_width="match_parent"
323        android:layout_height="wrap_content"
324        android:minHeight="48dip"
325        android:focusable="true">
326        <TextView
327            android:id="@+id/timezone_textView"
328            android:layout_height="wrap_content"
329            android:layout_width="wrap_content"
330            android:layout_marginLeft="24dip"
331            android:layout_marginRight="24dip"
332            style="@style/TextAppearance.EditEvent_Value" />
333    </LinearLayout>
334
335    <!-- TIME ZONE - Read/write version with button to launch picker -->
336    <LinearLayout
337        android:id="@+id/timezone_button_row"
338        android:orientation="vertical"
339        android:layout_width="match_parent"
340        android:layout_height="wrap_content"
341        android:minHeight="48dip">
342        <Button
343            android:id="@+id/timezone_button"
344            android:gravity="left|center_vertical"
345            android:layout_height="wrap_content"
346            android:layout_width="match_parent"
347            android:contentDescription="@string/accessibility_pick_time_zone"
348            style="@style/TextAppearance.EditEvent_SpinnerButton" />
349    </LinearLayout>
350
351
352    <View
353        style="@style/EditEventSeparator"/>
354</LinearLayout>