event_info.xml revision 0b1bd10dbf90e55821a555c68a8a444854e31252
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2006 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:background="#fafafa"
21    android:layout_width="match_parent"
22    android:layout_height="match_parent"
23    android:paddingTop="12dip"
24    android:paddingLeft="16dip"
25    android:paddingRight="16dip"
26    android:divider="?android:attr/dividerHorizontal"
27    android:showDividers="middle">
28
29   <ScrollView
30        android:orientation="vertical"
31        android:layout_width="match_parent"
32        android:layout_weight="1"
33        android:layout_height="0dip">
34
35        <LinearLayout
36            android:layout_width="match_parent"
37            android:layout_height="wrap_content"
38            android:paddingRight="16dip"
39            android:orientation="horizontal">
40
41            <!-- CALENDAR COLOR -->
42            <View
43                android:id="@+id/color"
44                android:layout_width="10dip"
45                android:layout_height="10dip"
46                android:layout_gravity="top|left"
47                android:layout_marginTop="9dip"
48                android:layout_marginRight="6dip" />
49
50            <LinearLayout
51                android:layout_width="match_parent"
52                android:layout_height="wrap_content"
53                android:layout_weight="1"
54                android:orientation="vertical">
55
56                <!-- WHAT -->
57                <TextView
58                    android:id="@+id/title"
59                    android:layout_width="wrap_content"
60                    android:layout_height="wrap_content"
61                    android:autoLink="all"
62                    android:textStyle="bold"
63                    style="?android:attr/textAppearanceLarge" />
64
65                <!-- WHEN -->
66                <TextView
67                    android:id="@+id/when"
68                    android:layout_width="wrap_content"
69                    android:layout_height="wrap_content"
70                    android:layout_marginTop="3dip"
71                    style="?android:attr/textAppearanceMedium" />
72
73                <!-- REPEATS -->
74                <LinearLayout
75                    android:id="@+id/repeat_container"
76                    android:visibility="gone"
77                    android:layout_marginTop="5dip"
78                    android:orientation="horizontal"
79                    android:layout_width="match_parent"
80                    android:layout_height="wrap_content">
81                    <ImageView
82                        android:id="@+id/repeat_icon"
83                        android:layout_width="wrap_content"
84                        android:layout_height="wrap_content"
85                        android:layout_gravity="center"
86                        android:src="@drawable/ic_repeat_dark"
87                        android:focusable="false"
88                        android:clickable="false" />
89                    <TextView
90                        android:id="@+id/repeat"
91                        android:layout_width="match_parent"
92                        android:layout_height="wrap_content"
93                        android:layout_marginLeft="3dip"
94                        style="?android:attr/textAppearanceMedium" />
95                </LinearLayout>
96
97                <!-- WHERE -->
98                <TextView
99                    android:id="@+id/where"
100                    android:layout_width="match_parent"
101                    android:layout_height="wrap_content"
102                    android:layout_marginTop="5dip"
103                    style="?android:attr/textAppearanceMedium" />
104
105                <!-- DESCRIPTION -->
106                <TextView
107                    android:id="@+id/description"
108                    android:layout_width="match_parent"
109                    android:layout_height="0dip"
110                    android:layout_weight="1"
111                    android:layout_marginTop="13dip"
112                    android:autoLink="all"
113                    android:ellipsize="end"
114                    style="?android:attr/textAppearanceMedium" />
115
116                <!-- CALENDAR -->
117                <TextView
118                    android:id="@+id/calendar"
119                    android:layout_width="match_parent"
120                    android:layout_height="wrap_content"
121                    android:layout_marginTop="13dip"
122                    android:singleLine="true"
123                    style="?android:attr/textAppearanceMedium" />
124
125                <!-- GUEST LIST -->
126                <TextView
127                    android:id="@+id/attendee_list"
128                    android:layout_width="wrap_content"
129                    android:layout_height="wrap_content"
130                    android:layout_marginTop="4dip"
131                    android:maxLines="2"
132                    android:ellipsize="end"
133                    style="?android:attr/textAppearanceMedium" />
134
135                <!-- RESPONSE -->
136                <LinearLayout
137                    android:id="@+id/response_container"
138                    android:visibility="gone"
139                    android:orientation="vertical"
140                    android:layout_width="match_parent"
141                    android:layout_height="wrap_content">
142                    <TextView
143                        android:id="@+id/response_label"
144                        android:layout_width="match_parent"
145                        android:layout_height="wrap_content"
146                        android:layout_gravity="center_vertical"
147                        android:layout_marginTop="4dip"
148                        android:textStyle="bold"
149                        style="?android:attr/textAppearanceMedium"
150                        android:text="@string/view_event_response_label" />
151                    <RadioGroup
152                        android:id="@+id/response_value"
153                        android:layout_width="match_parent"
154                        android:layout_height="wrap_content"
155                        android:layout_gravity="center_vertical"
156                        android:layout_marginTop="-2dip"
157                        android:layout_marginBottom="13dip"
158                        android:orientation="horizontal">
159                        <RadioButton
160                            android:id="@+id/response_yes"
161                            android:layout_width="0dip"
162                            android:layout_height="wrap_content"
163                            android:layout_weight="1"
164                            android:minWidth="96dip"
165                            style="?android:attr/textAppearanceMedium"
166                            android:text="@string/response_yes" />
167                        <RadioButton
168                            android:id="@+id/response_maybe"
169                            android:layout_width="0dip"
170                            android:layout_height="wrap_content"
171                            android:layout_weight="1"
172                            android:minWidth="96dip"
173                            style="?android:attr/textAppearanceMedium"
174                            android:text="@string/response_maybe" />
175                        <RadioButton
176                            android:id="@+id/response_no"
177                            android:layout_width="0dip"
178                            android:layout_height="wrap_content"
179                            android:layout_weight="1"
180                            android:minWidth="96dip"
181                            style="?android:attr/textAppearanceMedium"
182                            android:text="@string/response_no" />
183                    </RadioGroup>
184                </LinearLayout>
185            </LinearLayout>
186        </LinearLayout>
187    </ScrollView>
188
189        <!-- BUTTONS -->
190    <LinearLayout
191        android:orientation="horizontal"
192        android:layout_width="match_parent"
193        android:layout_height="48dip"
194        android:gravity="center"
195        android:layout_marginBottom="4dip"
196        style="?android:attr/buttonBarStyle">
197        <Button
198            android:id="@+id/edit"
199            android:layout_width="0dip"
200            android:layout_height="wrap_content"
201            android:layout_weight="1"
202            android:enabled="false"
203            style="?android:attr/buttonBarButtonStyle"
204            android:text="@string/edit_event_label" />
205        <Button
206            android:id="@+id/delete"
207            android:layout_width="0dip"
208            android:layout_height="wrap_content"
209            android:layout_weight="1"
210            style="?android:attr/buttonBarButtonStyle"
211            android:text="@string/delete_label" />
212    </LinearLayout>
213</LinearLayout>
214