alert_item.xml revision 146de36083f6ce8b7e8a1f974d3990594a36bfec
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:background="@drawable/box_appointment">
22    
23    <ImageView android:id="@+id/vertical_stripe"
24        android:layout_width="wrap_content"
25        android:layout_height="fill_parent"
26        android:layout_marginTop="2dip"
27        android:layout_marginBottom="2dip"
28        android:layout_marginRight="5dip"
29        android:background="@drawable/box_color_white" />
30        
31    <LinearLayout
32        android:orientation="vertical"
33        android:layout_width="fill_parent"
34        android:layout_height="wrap_content">
35        
36        <LinearLayout android:id="@+id/event_title_container"
37            android:orientation="horizontal"
38            android:layout_width="fill_parent"
39            android:layout_height="wrap_content">
40            
41            <TextView android:id="@+id/event_title"
42                android:layout_width="fill_parent"
43                android:layout_height="wrap_content"
44                android:layout_gravity="center"
45                android:textStyle="bold"
46                android:textColor="@android:color/black"
47                style="?android:attr/textAppearanceMediumInverse" />
48        </LinearLayout>
49        
50        <LinearLayout android:id="@+id/event_details"
51            android:orientation="vertical"
52            android:layout_width="fill_parent"
53            android:layout_height="wrap_content">
54            
55            <LinearLayout
56                android:orientation="horizontal"
57                android:layout_width="fill_parent"
58                android:layout_height="fill_parent">
59                
60                <LinearLayout
61                    android:orientation="horizontal"
62                    android:layout_width="0dip"
63                    android:layout_height="fill_parent"
64                    android:layout_weight="1"
65                    android:gravity="center_vertical">
66                    
67                    <TextView android:id="@+id/when"
68                        android:layout_width="wrap_content"
69                        android:layout_height="fill_parent"
70                        android:textStyle="bold"
71                        style="?android:attr/textAppearanceSmallInverse" />
72                        
73                    <ImageView android:id="@+id/repeat_icon"
74                        android:layout_width="wrap_content"
75                        android:layout_height="fill_parent"
76                        android:layout_marginLeft="5dip"
77                        android:src="@drawable/ic_repeat_dark"
78                        android:focusable="false"
79                        android:clickable="false"
80                    />
81                
82                </LinearLayout>
83                <LinearLayout android:id="@+id/reminders_container"
84                    android:orientation="vertical"
85                    android:layout_height="fill_parent"
86                    android:layout_width="wrap_content"
87                />
88            </LinearLayout>
89            
90            <TextView android:id="@+id/where"
91                android:layout_width="fill_parent"
92                android:layout_height="wrap_content"
93                android:textStyle="bold"
94                style="?android:attr/textAppearanceSmallInverse" />
95        </LinearLayout>
96    </LinearLayout>
97</LinearLayout>
98