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
17<LinearLayout
18    xmlns:android="http://schemas.android.com/apk/res/android"
19    android:orientation="vertical"
20    android:layout_width="match_parent"
21    android:layout_height="wrap_content">
22
23    <!-- RESPONSE -->
24    <LinearLayout
25        android:id="@+id/response_row"
26        android:orientation="vertical"
27        android:layout_width="match_parent"
28        android:layout_height="wrap_content"
29        android:minHeight="64dip"
30        android:focusable="true">
31        <TextView
32            android:id="@+id/response_label"
33            android:text="@string/view_event_response_label"
34            android:gravity="center_vertical"
35            android:layout_height="wrap_content"
36            android:layout_width="wrap_content"
37            style="@style/TextAppearance.EditEvent_LabelSmall" />
38        <RadioGroup
39            android:id="@+id/response_value"
40            android:orientation="horizontal"
41            android:layout_height="wrap_content"
42            android:layout_width="match_parent"
43            android:layout_marginLeft="16dip"
44            android:layout_marginRight="8dip"
45            android:paddingTop="5dip">
46            <RadioButton
47                android:id="@+id/response_yes"
48                android:layout_width="wrap_content"
49                android:layout_height="wrap_content"
50                android:maxWidth="128dip"
51                android:layout_weight="1"
52                android:gravity="center_vertical"
53                style="@style/TextAppearance.EditEvent"
54                android:text="@string/response_yes" />
55            <RadioButton
56                android:id="@+id/response_maybe"
57                android:layout_width="wrap_content"
58                android:layout_height="wrap_content"
59                android:maxWidth="128dip"
60                android:layout_weight="1"
61                android:gravity="center_vertical"
62                style="@style/TextAppearance.EditEvent"
63                android:text="@string/response_maybe" />
64            <RadioButton
65                android:id="@+id/response_no"
66                android:layout_width="wrap_content"
67                android:layout_height="wrap_content"
68                android:maxWidth="128dip"
69                android:layout_weight="1"
70                android:gravity="center_vertical"
71                style="@style/TextAppearance.EditEvent"
72                android:text="@string/response_no" />
73        </RadioGroup>
74        <View
75            style="@style/EditEventSeparator"/>
76    </LinearLayout>
77
78    <LinearLayout
79        android:id="@+id/organizer_row"
80        android:orientation="vertical"
81        android:layout_width="match_parent"
82        android:layout_height="wrap_content"
83        android:minHeight="48dip"
84        android:focusable="true">
85        <TextView
86            android:id="@+id/organizer_label"
87            android:text="@string/view_event_organizer_label"
88            android:layout_height="wrap_content"
89            android:layout_width="wrap_content"
90            style="@style/TextAppearance.EditEvent_LabelSmall" />
91        <TextView
92            android:id="@+id/organizer"
93            android:layout_height="wrap_content"
94            android:layout_width="wrap_content"
95            style="@style/TextAppearance.EditEvent_Value" />
96        <View
97            style="@style/EditEventSeparator"/>
98    </LinearLayout>
99
100    <LinearLayout
101        android:id="@+id/add_attendees_row"
102        android:orientation="vertical"
103        android:layout_width="match_parent"
104        android:layout_height="wrap_content"
105        android:minHeight="48dip">
106        <TextView
107            android:text="@string/attendees_label"
108            android:layout_height="wrap_content"
109            android:layout_width="wrap_content"
110            android:layout_marginTop="8dip"
111            style="@style/TextAppearance.EditEvent_LabelSmall" />
112        <com.android.ex.chips.RecipientEditTextView
113            android:id="@+id/attendees"
114            android:layout_marginTop="2dip"
115            android:layout_width="match_parent"
116            android:layout_height="wrap_content"
117            android:inputType="textEmailAddress|textMultiLine|textCapWords"
118            android:hint="@string/hint_attendees"
119            android:imeOptions="actionNext"
120            style="@style/TextAppearance.EditEvent_Value" />
121    </LinearLayout>
122
123    <View
124        style="@style/EditEventSeparator"/>
125
126    <!-- DESCRIPTION -->
127    <LinearLayout android:id="@+id/description_row"
128        android:orientation="vertical"
129        android:layout_width="match_parent"
130        android:layout_height="wrap_content"
131        android:layout_marginBottom="6dip"
132        android:focusable="true">
133        <EditText
134            android:id="@+id/description"
135            android:layout_height="wrap_content"
136            android:layout_width="match_parent"
137            android:layout_gravity="bottom"
138            android:minHeight="48dip"
139            android:hint="@string/hint_description"
140            android:inputType="textAutoCorrect|textCapSentences|textMultiLine"
141            style="@style/TextAppearance.EditEvent_Value"
142            android:capitalize="sentences" />
143    </LinearLayout>
144
145    <View
146        style="@style/EditEventSeparator"/>
147
148    <!-- REPEATS -->
149    <LinearLayout
150        android:orientation="vertical"
151        android:layout_width="match_parent"
152        android:layout_height="wrap_content"
153        android:paddingBottom="6dp"
154        android:focusable="true">
155        <TextView
156            android:id="@+id/repeats_label"
157            android:text="@string/repeats_label"
158            android:layout_height="wrap_content"
159            android:layout_width="wrap_content"
160            android:layout_marginBottom="0dip"
161            style="@style/TextAppearance.EditEvent_LabelSmall" />
162        <Button
163            android:id="@+id/rrule"
164            android:text="@string/does_not_repeat"
165            android:layout_height="wrap_content"
166            android:layout_width="match_parent"
167            android:layout_marginTop="-12dip"
168            android:gravity="left|center_vertical"
169            android:contentDescription="@string/accessibility_pick_recurrence"
170            style="@style/TextAppearance.EditEvent_SpinnerButton" />
171    </LinearLayout>
172
173    <View
174        style="@style/EditEventSeparator"/>
175
176        <!-- REMINDERS -->
177    <LinearLayout
178        android:id="@+id/reminders_row"
179        android:orientation="vertical"
180        android:layout_width="match_parent"
181        android:layout_height="wrap_content"
182        android:focusable="true">
183        <TextView
184            android:id="@+id/reminders_group_label"
185            android:text="@string/event_info_reminders_label"
186            android:layout_height="wrap_content"
187            android:layout_width="wrap_content"
188            android:gravity="center_vertical"
189            android:layout_marginBottom="0dip"
190            style="@style/TextAppearance.EditEvent_LabelSmall" />
191        <LinearLayout
192            android:id="@+id/reminder_items_container"
193            android:layout_height="wrap_content"
194            android:layout_width="match_parent"
195            android:layout_marginTop="-8dip"
196            android:layout_marginBottom="8dip"
197            android:layout_marginRight="8dip"
198            android:orientation="vertical" />
199        <Button
200            android:id="@+id/reminder_add"
201            android:text="@string/reminders_label"
202            android:layout_height="wrap_content"
203            android:layout_width="match_parent"
204            android:layout_gravity="center_vertical"
205            android:gravity="top"
206            android:paddingBottom="12dp"
207            android:layout_marginTop="0dip"
208            android:layout_marginBottom="0dip"
209            android:textAllCaps="false"
210            android:textSize="18sp"
211            android:textColor="#FF777777"
212            android:minHeight="20dip"
213            android:background="?android:attr/selectableItemBackground"
214            android:contentDescription="@string/accessibility_add_reminder"
215            style="@style/TextAppearance.EditEvent_LabelSmall" />
216    </LinearLayout>
217
218       <!-- PRESENCE - Show me as [busy | available] -->
219    <LinearLayout
220        android:id="@+id/availability_row"
221        android:orientation="vertical"
222        android:layout_width="match_parent"
223        android:layout_height="wrap_content"
224        android:paddingBottom="6dp">
225        <TextView
226            android:id="@+id/presence_label"
227            android:text="@string/presence_label"
228            android:layout_height="wrap_content"
229            android:layout_width="wrap_content"
230            style="@style/TextAppearance.EditEvent_LabelSmall"
231            android:paddingRight="4dip" />
232        <Spinner
233            android:id="@+id/availability"
234            android:entries="@array/availability"
235            style="@style/TextAppearance.EditEvent_Spinner"
236            android:layout_height="wrap_content"
237            android:layout_width="match_parent"
238            android:contentDescription="@string/accessibility_reminder_showmeas"
239            android:prompt="@string/presence_label" />
240    </LinearLayout>
241
242        <!-- PRIVACY -->
243    <LinearLayout
244        android:id="@+id/visibility_row"
245        android:orientation="vertical"
246        android:layout_width="match_parent"
247        android:layout_height="wrap_content"
248        android:paddingBottom="6dp">
249        <TextView
250            android:id="@+id/privacy_label"
251            android:text="@string/privacy_label"
252            android:layout_height="wrap_content"
253            android:layout_width="wrap_content"
254            style="@style/TextAppearance.EditEvent_LabelSmall" />
255        <Spinner
256            android:id="@+id/visibility"
257            android:entries="@array/visibility"
258            style="@style/TextAppearance.EditEvent_Spinner"
259            android:layout_height="wrap_content"
260            android:layout_width="match_parent"
261            android:contentDescription="@string/accessibility_reminder_privacy"
262            android:prompt="@string/privacy_label" />
263    </LinearLayout>
264
265</LinearLayout>
266