Automated import from //branches/donutburger/...@141076,141076
[android/platform/packages/apps/Calendar.git] / res / layout / event_info_activity.xml
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                 <!-- DESCRIPTION -->
124                 <TextView android:id="@+id/description"
125                     android:layout_width="fill_parent"
126                     android:layout_height="wrap_content"
127                     android:paddingLeft="8dip"
128                     android:paddingRight="8dip"
129                     android:autoLink="all"
130                     style="?android:attr/textAppearanceSmall"
131                 />
132         
133                 <!-- CALENDAR -->
134                 <LinearLayout android:id="@+id/calendar_container"
135                     android:orientation="horizontal"
136                     android:layout_width="fill_parent"
137                     android:layout_height="wrap_content"
138                     android:paddingBottom="5dip"
139                 >
140             
141                     <TextView android:id="@+id/calendar_label"
142                         android:layout_width="wrap_content"
143                         android:layout_height="wrap_content"
144                         android:layout_marginRight="5dip"
145                         android:text="@string/view_event_calendar_label"
146                         style="?android:attr/textAppearanceSmall"
147                     />
148     
149                     <TextView android:id="@+id/calendar"
150                         android:layout_width="fill_parent"
151                         android:layout_height="wrap_content"
152                         style="?android:attr/textAppearanceSmall"
153                     />
154                 </LinearLayout>
155             </LinearLayout>
156         </LinearLayout>
157         
158         <!-- RESPONSE -->
159         <LinearLayout android:id="@+id/response_container"
160             android:orientation="vertical"
161             android:layout_width="fill_parent"
162             android:layout_height="wrap_content"
163             android:paddingLeft="8dip"
164             android:paddingRight="8dip"
165             android:paddingTop="5dip"
166             android:paddingBottom="1dip">
167         
168             <TextView android:id="@+id/response_label"
169                 android:layout_width="wrap_content"
170                 android:layout_height="wrap_content"
171                 android:text="@string/view_event_response_label"
172                 style="@style/TextAppearance.EditEvent_Label"/>
173         
174             <Spinner android:id="@+id/response_value"
175                 style="?android:attr/textAppearanceMedium"
176                 android:prompt="@string/view_event_response_label"
177                 android:layout_width="fill_parent"
178                 android:layout_height="wrap_content"
179                 android:entries="@array/response_labels1"/>
180         </LinearLayout>
181         
182         <!-- REMINDERS -->
183         <LinearLayout android:id="@+id/reminders_container"
184             android:orientation="vertical"
185             android:layout_width="fill_parent"
186             android:layout_height="wrap_content"
187             android:paddingLeft="8dip"
188             android:paddingRight="8dip"
189             android:paddingTop="5dip"
190             android:paddingBottom="1dip">
191         
192             <TextView android:id="@+id/reminders_label"
193                 android:layout_width="wrap_content"
194                 android:layout_height="wrap_content"
195                 android:text="@string/reminders_label"
196                 style="@style/TextAppearance.EditEvent_Label"/>
197
198             <LinearLayout android:id="@+id/reminder_items_container"
199                 style="?android:attr/textAppearanceMedium"
200                 android:orientation="vertical"
201                 android:layout_width="fill_parent"
202                 android:layout_height="wrap_content">
203             </LinearLayout>
204         </LinearLayout>
205         <LinearLayout
206             android:layout_width="fill_parent"
207             android:layout_height="wrap_content"
208             android:gravity="right"
209             android:paddingBottom="5dip">
210             <ImageButton android:id="@+id/reminder_add"
211                 style="@style/PlusButton"
212                 android:layout_width="wrap_content"
213                 android:layout_height="wrap_content"
214                 android:layout_marginRight="10dip"
215             />
216         </LinearLayout>
217     </LinearLayout>
218 </ScrollView>