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