• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
18    android:layout_width="fill_parent"
19    android:layout_height="fill_parent"
20    android:layout_weight="1.0" >
21
22    <LinearLayout
23        android:orientation="vertical"
24        android:background="#fafafa"
25        android:layout_width="fill_parent"
26        android:layout_height="wrap_content"
27        android:layout_alignParentTop="true" >
28
29        <LinearLayout android:id="@+id/cal_background"
30            android:layout_width="fill_parent"
31            android:layout_height="wrap_content"
32            android:paddingTop="10dip"
33            android:paddingBottom="8dip"
34            android:paddingLeft="8dip"
35            android:paddingRight="8dip">
36
37            <LinearLayout android:id="@+id/event"
38            	android:background="@drawable/bg_cal_card"
39                android:orientation="vertical"
40                android:layout_height="wrap_content"
41                android:layout_width="fill_parent"
42                android:layout_weight="1">
43
44                <!-- WHAT -->
45                <TextView android:id="@+id/title"
46                    android:layout_width="fill_parent"
47                    android:layout_height="wrap_content"
48                    android:autoLink="all"
49                    android:textStyle="bold"
50                    android:paddingBottom="7dip"
51                    style="?android:attr/textAppearanceMedium"
52                />
53
54                <View android:id="@+id/divider"
55                    android:layout_width="fill_parent"
56                    android:layout_height="wrap_content"
57                    android:background="@android:drawable/divider_horizontal_dark"
58                />
59
60                <!-- WHEN -->
61                <TextView android:id="@+id/when"
62                    android:layout_width="wrap_content"
63                    android:layout_height="wrap_content"
64                    android:paddingTop="7dip"
65                    android:textStyle="bold"
66                    style="?android:attr/textAppearanceSmall"
67                />
68
69                <!-- TIMEZONE -->
70                <LinearLayout android:id="@+id/timezone_container"
71                    android:orientation="horizontal"
72                    android:layout_width="fill_parent"
73                    android:layout_height="wrap_content">
74
75                    <TextView android:id="@+id/timezone_label"
76                        android:layout_width="wrap_content"
77                        android:layout_height="wrap_content"
78                        android:layout_marginRight="5dip"
79                        android:text="@string/view_event_timezone_label"
80                        style="?android:attr/textAppearanceSmall"
81                    />
82
83                    <TextView android:id="@+id/timezone"
84                        android:layout_width="fill_parent"
85                        android:layout_height="wrap_content"
86                        style="?android:attr/textAppearanceSmall"
87                    />
88                </LinearLayout>
89
90                <!-- REPEATS -->
91                <LinearLayout android:id="@+id/repeat_container"
92                    android:orientation="horizontal"
93                    android:layout_width="fill_parent"
94                    android:layout_height="wrap_content">
95
96                    <ImageView android:id="@+id/repeat_icon"
97                        android:layout_width="wrap_content"
98                        android:layout_height="wrap_content"
99                        android:layout_gravity="center"
100                        android:src="@drawable/ic_repeat_dark"
101                        android:focusable="false"
102                        android:clickable="false"
103                    />
104
105                    <TextView android:id="@+id/repeat"
106                        android:layout_width="fill_parent"
107                        android:layout_height="wrap_content"
108                        android:layout_marginLeft="3dip"
109                        style="?android:attr/textAppearanceSmall"
110                    />
111                </LinearLayout>
112
113                <!-- WHERE -->
114                <TextView android:id="@+id/where"
115                    android:layout_width="fill_parent"
116                    android:layout_height="wrap_content"
117                    android:paddingLeft="8dip"
118                    android:paddingRight="8dip"
119                    android:autoLink="all"
120                    style="?android:attr/textAppearanceSmall"
121                />
122
123                <!-- Organizer -->
124                <LinearLayout android:id="@+id/organizer_container"
125                    android:orientation="horizontal"
126                    android:layout_width="fill_parent"
127                    android:layout_height="wrap_content"
128                    android:paddingBottom="5dip"
129                >
130
131                    <TextView
132                        android:layout_width="wrap_content"
133                        android:layout_height="wrap_content"
134                        android:layout_marginRight="5dip"
135                        android:text="@string/view_event_organizer_label"
136                        style="?android:attr/textAppearanceSmall"
137                    />
138
139                    <TextView android:id="@+id/organizer"
140                        android:layout_width="fill_parent"
141                        android:layout_height="wrap_content"
142                        style="?android:attr/textAppearanceSmall"
143                    />
144                </LinearLayout>
145
146                <!-- DESCRIPTION -->
147                <TextView android:id="@+id/description"
148                    android:layout_width="fill_parent"
149                    android:layout_height="wrap_content"
150                    android:paddingLeft="8dip"
151                    android:paddingRight="8dip"
152                    android:autoLink="all"
153                    style="?android:attr/textAppearanceSmall"
154                />
155
156                <!-- CALENDAR -->
157                <LinearLayout android:id="@+id/calendar_container"
158                    android:orientation="horizontal"
159                    android:layout_width="fill_parent"
160                    android:layout_height="wrap_content"
161                    android:paddingBottom="5dip"
162                >
163
164                    <TextView android:id="@+id/calendar_label"
165                        android:layout_width="wrap_content"
166                        android:layout_height="wrap_content"
167                        android:layout_marginRight="5dip"
168                        android:text="@string/view_event_calendar_label"
169                        style="?android:attr/textAppearanceSmall"
170                    />
171
172                    <TextView android:id="@+id/calendar"
173                        android:layout_width="fill_parent"
174                        android:layout_height="wrap_content"
175                        style="?android:attr/textAppearanceSmall"
176                    />
177                </LinearLayout>
178            </LinearLayout>
179        </LinearLayout>
180
181        <!-- RESPONSE -->
182        <LinearLayout android:id="@+id/response_container"
183            android:orientation="vertical"
184            android:layout_width="fill_parent"
185            android:layout_height="wrap_content"
186            android:paddingLeft="8dip"
187            android:paddingRight="8dip"
188            android:paddingTop="5dip"
189            android:paddingBottom="1dip">
190
191            <TextView android:id="@+id/response_label"
192                android:layout_width="wrap_content"
193                android:layout_height="wrap_content"
194                android:text="@string/view_event_response_label"
195                style="@style/TextAppearance.EventInfo_Label"/>
196
197            <Spinner android:id="@+id/response_value"
198                style="?android:attr/textAppearanceMedium"
199                android:prompt="@string/view_event_response_label"
200                android:layout_width="fill_parent"
201                android:layout_height="wrap_content"
202                android:entries="@array/response_labels1"/>
203        </LinearLayout>
204
205        <!-- GUEST LIST -->
206        <LinearLayout
207            android:id="@+id/attendee_list"
208            android:layout_width="fill_parent"
209            android:layout_height="wrap_content"
210            android:paddingLeft="8dip"
211            android:orientation="vertical" />
212
213        <!-- REMINDERS -->
214        <LinearLayout android:id="@+id/reminders_container"
215            android:orientation="vertical"
216            android:layout_width="fill_parent"
217            android:layout_height="wrap_content"
218            android:paddingLeft="8dip"
219            android:paddingRight="7dip"
220            android:paddingTop="5dip"
221            android:paddingBottom="5dip">
222
223            <TextView android:id="@+id/reminders_label"
224                android:layout_width="wrap_content"
225                android:layout_height="wrap_content"
226                android:text="@string/reminders_label"
227                style="@style/TextAppearance.EventInfo_Label"/>
228
229            <LinearLayout android:id="@+id/reminder_items_container"
230                style="?android:attr/textAppearanceMedium"
231                android:orientation="vertical"
232                android:layout_width="fill_parent"
233                android:layout_height="wrap_content">
234            </LinearLayout>
235            <LinearLayout android:id="@+id/reminder_adder"
236                android:layout_width="fill_parent"
237                android:layout_height="wrap_content"
238                android:gravity="center_vertical|right">
239
240                <TextView
241                    android:layout_width="wrap_content"
242                    android:layout_height="wrap_content"
243                    android:layout_marginRight="7dip"
244                    android:text="@string/add_new_reminder"/>
245
246                <ImageButton android:id="@+id/reminder_add"
247                    style="@style/PlusButton"
248                    android:layout_width="wrap_content"
249                    android:layout_height="wrap_content"
250                />
251            </LinearLayout>
252        </LinearLayout>
253    </LinearLayout>
254</ScrollView>
255