OSDN Git Service

auto import from //depot/cupcake/@136594
[android-x86/packages-apps-Calendar.git] / res / layout / alert_item.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright (C) 2008 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 xmlns:android="http://schemas.android.com/apk/res/android"
18     android:orientation="horizontal"
19     android:layout_width="fill_parent"
20     android:layout_height="wrap_content"
21     android:gravity="center_vertical"
22     android:minHeight="?android:attr/listPreferredItemHeight">
23     
24     <View android:id="@+id/vertical_stripe"
25         android:layout_width="10dip"
26         android:layout_height="fill_parent"
27         android:layout_marginRight="5dip" />
28         
29     <LinearLayout
30         android:orientation="vertical"
31         android:layout_width="fill_parent"
32         android:layout_height="wrap_content">
33         
34         <TextView android:id="@+id/event_title"
35             android:layout_width="fill_parent"
36             android:layout_height="wrap_content"
37             android:layout_gravity="center"
38             android:textStyle="bold"
39             android:textColor="@android:color/black"
40             style="?android:attr/textAppearanceMediumInverse" />
41         
42         <LinearLayout android:id="@+id/event_details"
43             android:orientation="vertical"
44             android:layout_width="fill_parent"
45             android:layout_height="wrap_content">
46             
47             <LinearLayout
48                 android:orientation="horizontal"
49                 android:layout_width="fill_parent"
50                 android:layout_height="fill_parent">
51                 
52                 <LinearLayout
53                     android:orientation="horizontal"
54                     android:layout_width="0dip"
55                     android:layout_height="fill_parent"
56                     android:layout_weight="1"
57                     android:gravity="center_vertical">
58                     
59                     <TextView android:id="@+id/when"
60                         android:layout_width="wrap_content"
61                         android:layout_height="fill_parent"
62                         android:textStyle="bold"
63                         style="?android:attr/textAppearanceSmall" />
64
65                     <ImageView android:id="@+id/repeat_icon"
66                         android:layout_width="wrap_content"
67                         android:layout_height="fill_parent"
68                         android:layout_marginLeft="5dip"
69                         android:src="@drawable/ic_repeat_dark"
70                         android:focusable="false"
71                         android:clickable="false"
72                     />
73                 
74                 </LinearLayout>
75                 <LinearLayout android:id="@+id/reminders_container"
76                     android:orientation="vertical"
77                     android:layout_height="fill_parent"
78                     android:layout_width="wrap_content"
79                 />
80             </LinearLayout>
81             
82             <TextView android:id="@+id/where"
83                 android:layout_width="fill_parent"
84                 android:layout_height="wrap_content"
85                 android:textStyle="bold"
86                 style="?android:attr/textAppearanceSmall" />
87         </LinearLayout>
88     </LinearLayout>
89 </LinearLayout>