1<?xml version="1.0" encoding="utf-8"?>
2<!--
3     Copyright (C) 2013 The Android Open Source Project
4
5     Licensed under the Apache License, Version 2.0 (the "License");
6     you may not use this file except in compliance with the License.
7     You may obtain a copy of the License at
8
9          http://www.apache.org/licenses/LICENSE-2.0
10
11     Unless required by applicable law or agreed to in writing, software
12     distributed under the License is distributed on an "AS IS" BASIS,
13     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14     See the License for the specific language governing permissions and
15     limitations under the License.
16-->
17<LinearLayout
18    xmlns:android="http://schemas.android.com/apk/res/android"
19    android:id="@+id/event_info_headline"
20    android:layout_width="match_parent"
21    android:layout_height="wrap_content"
22    android:layout_weight="1"
23    android:orientation="vertical"
24    android:paddingBottom="16dip"
25    android:paddingLeft="16dip"
26    android:paddingRight="16dip"
27    android:paddingTop="8dip" >
28
29    <LinearLayout
30        android:layout_width="match_parent"
31        android:layout_height="wrap_content"
32        android:orientation="horizontal" >
33
34        <!-- WHAT -->
35        <TextView
36            android:id="@+id/title"
37            style="?android:attr/textAppearanceLarge"
38            android:layout_width="wrap_content"
39            android:layout_height="wrap_content"
40            android:layout_weight=".8"
41            android:autoLink="all"
42            android:textColor="@color/event_info_headline_color"
43            android:textColorLink="@color/event_info_headline_color"
44            android:textIsSelectable="true"
45            android:textSize="24sp"
46            android:textStyle="bold" />
47        <!-- BUTTONS -->
48
49        <LinearLayout
50            android:id="@+id/event_info_buttons_container"
51            android:layout_width="wrap_content"
52            android:layout_height="wrap_content"
53            android:layout_gravity="right"
54            android:orientation="horizontal" >
55
56            <Button
57                android:id="@+id/change_color"
58                style="?android:attr/buttonBarButtonStyle"
59                android:layout_width="wrap_content"
60                android:layout_height="wrap_content"
61                android:layout_weight="1"
62                android:enabled="false"
63                android:visibility="gone"
64                android:text="@string/choose_event_color_label"
65                android:textColor="@color/event_info_headline_color" />
66
67            <Button
68                android:id="@+id/edit"
69                style="?android:attr/buttonBarButtonStyle"
70                android:layout_width="wrap_content"
71                android:layout_height="wrap_content"
72                android:layout_weight="1"
73                android:enabled="false"
74                android:text="@string/edit_event_label"
75                android:textColor="@color/event_info_headline_color" />
76
77            <Button
78                android:id="@+id/delete"
79                style="?android:attr/buttonBarButtonStyle"
80                android:layout_width="wrap_content"
81                android:layout_height="wrap_content"
82                android:layout_weight="1"
83                android:text="@string/delete_label"
84                android:textColor="@color/event_info_headline_color" />
85        </LinearLayout>
86    </LinearLayout>
87
88    <!-- WHEN -->
89
90    <TextView
91        android:id="@+id/when_datetime"
92        style="?android:attr/textAppearanceLarge"
93        android:layout_width="wrap_content"
94        android:layout_height="wrap_content"
95        android:layout_marginTop="4dip"
96        android:textColor="@color/event_info_headline_color"
97        android:textIsSelectable="true"
98        android:textSize="14sp" />
99
100    <TextView
101        android:id="@+id/when_repeat"
102        style="?android:attr/textAppearanceLarge"
103        android:layout_width="wrap_content"
104        android:layout_height="wrap_content"
105        android:layout_marginTop="-3dip"
106        android:textColor="@color/event_info_headline_transparent_color"
107        android:textSize="14sp" />
108
109    <!-- WHERE -->
110
111    <TextView
112        android:id="@+id/where"
113        style="?android:attr/textAppearanceLarge"
114        android:layout_width="match_parent"
115        android:layout_height="wrap_content"
116        android:layout_marginTop="4dip"
117        android:ellipsize="end"
118        android:singleLine="false"
119        android:textColor="@color/event_info_headline_color"
120        android:textColorLink="@color/event_info_headline_link_color"
121        android:textIsSelectable="true"
122        android:textSize="14sp" />
123
124</LinearLayout>