edit_event_2.xml revision 00631357f71334d71dfaff2a0ab5ce24fb9b7716
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<TableLayout
18    xmlns:android="http://schemas.android.com/apk/res/android"
19    android:stretchColumns="1"
20    android:shrinkColumns="1">
21
22    <!-- RESPONSE -->
23    <TableRow
24        android:id="@+id/response_row"
25        android:focusable="true">
26        <TextView
27            android:id="@+id/response_label"
28            android:text="@string/view_event_response_label"
29            android:layout_gravity="center_vertical"
30            android:gravity="center_vertical"
31            style="@style/TextAppearance.EditEvent_Label" />
32        <RadioGroup
33            android:id="@+id/response_value"
34            android:layout_gravity="center_vertical"
35            android:orientation="horizontal">
36            <RadioButton
37                android:id="@+id/response_yes"
38                android:layout_width="wrap_content"
39                android:layout_height="wrap_content"
40                android:maxWidth="128dip"
41                android:layout_weight="1"
42                android:layout_gravity="center_vertical"
43                android:gravity="center_vertical"
44                style="@style/TextAppearance.EditEvent_Value"
45                android:text="@string/response_yes" />
46            <RadioButton
47                android:id="@+id/response_maybe"
48                android:layout_width="wrap_content"
49                android:layout_height="wrap_content"
50                android:maxWidth="128dip"
51                android:layout_weight="1"
52                android:layout_gravity="center_vertical"
53                android:gravity="center_vertical"
54                style="@style/TextAppearance.EditEvent_Value"
55                android:text="@string/response_maybe" />
56            <RadioButton
57                android:id="@+id/response_no"
58                android:layout_width="wrap_content"
59                android:layout_height="wrap_content"
60                android:maxWidth="128dip"
61                android:layout_weight="1"
62                android:layout_gravity="center_vertical"
63                android:gravity="center_vertical"
64                style="@style/TextAppearance.EditEvent_Value"
65                android:text="@string/response_no" />
66        </RadioGroup>
67    </TableRow>
68    <TableRow
69        android:id="@+id/organizer_row"
70        android:focusable="true">
71        <TextView
72            android:id="@+id/organizer_label"
73            android:text="@string/view_event_organizer_label"
74            style="@style/TextAppearance.EditEvent_Label" />
75        <TextView
76            android:id="@+id/organizer"
77            style="@style/TextAppearance.EditEvent_Value" />
78    </TableRow>
79    <TableRow
80        android:id="@+id/add_attendees_row">
81        <TextView
82            android:id="@+id/add_attendees_label"
83            android:text="@string/add_guests_label"
84            style="@style/TextAppearance.EditEvent_Label" />
85        <LinearLayout
86            android:id="@+id/add_attendees_group"
87            android:orientation="horizontal">
88            <!-- ATTENDEES INPUT -->
89            <MultiAutoCompleteTextView
90                android:id="@+id/attendees"
91                android:layout_width="0dip"
92                android:layout_height="wrap_content"
93                android:layout_weight="1"
94                android:inputType="textEmailAddress|textMultiLine"
95                android:hint="@string/hint_attendees"
96                android:imeOptions="actionNext" />
97
98            <!-- ATTENDEES ADD BUTTON -->
99            <ImageButton
100                android:id="@+id/add_attendee_button"
101                style="@style/PlusButton"
102                android:layout_gravity="right"
103                android:enabled="false"
104                android:layout_width="wrap_content"
105                android:layout_height="wrap_content" />
106        </LinearLayout>
107    </TableRow>
108
109    <!-- ATTENDEES -->
110    <TableRow
111        android:id="@+id/attendees_row"
112        android:focusable="true">
113        <TextView
114            android:text="@string/attendees_label"
115            style="@style/TextAppearance.EditEvent_Label" />
116
117        <!-- GUEST LIST -->
118        <com.android.calendar.event.AttendeesView
119            android:id="@+id/attendee_list"
120            android:orientation="vertical"
121            android:animateLayoutChanges="false">
122        </com.android.calendar.event.AttendeesView>
123    </TableRow>
124</TableLayout>