1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2012 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:layout_width="match_parent"
19    android:layout_height="match_parent"
20    android:orientation="vertical"
21    android:paddingLeft="12dp"
22    android:paddingRight="12dp" >
23
24    <EditText
25        android:id="@+id/event_title"
26        android:layout_width="match_parent"
27        android:layout_height="48dp"
28        android:hint="@string/hint_what"
29        android:paddingBottom="4dp"
30        android:paddingTop="4dp" />
31
32    <TextView
33        android:id="@+id/event_day"
34        android:layout_width="match_parent"
35        android:layout_height="48dp"
36        android:layout_marginLeft="4dp"
37        android:layout_marginRight="4dp"
38        android:gravity="center_vertical"
39        android:paddingBottom="4dp"
40        android:paddingTop="4dp"
41        android:singleLine="true"
42        android:textColor="@color/create_event_date_color"
43        android:textSize="18sp" />
44
45    <RelativeLayout
46        xmlns:android="http://schemas.android.com/apk/res/android"
47        android:layout_width="match_parent"
48        android:layout_height="wrap_content"
49        android:layout_marginLeft="4dp"
50        android:layout_marginRight="4dp"
51        android:gravity="center_vertical"
52        android:orientation="horizontal"
53        android:paddingBottom="8dp"
54        android:paddingTop="4dp" >
55
56        <View
57            android:id="@+id/color"
58            android:layout_width="16dip"
59            android:layout_height="16dip"
60            android:layout_marginRight="4dip"
61            android:layout_marginTop="5dip" />
62
63        <TextView
64            android:id="@+id/calendar_name"
65            style="?android:attr/textAppearanceMedium"
66            android:layout_width="match_parent"
67            android:layout_height="wrap_content"
68            android:layout_alignParentTop="true"
69            android:layout_toRightOf="@id/color"
70            android:ellipsize="marquee"
71            android:singleLine="true"
72            android:textColor="#333333" />
73
74        <TextView
75            android:id="@+id/account_name"
76            android:layout_width="wrap_content"
77            android:layout_height="wrap_content"
78            android:layout_alignLeft="@id/calendar_name"
79            android:layout_below="@id/calendar_name"
80            android:ellipsize="marquee"
81            android:singleLine="true"
82            android:textAppearance="?android:attr/textAppearanceSmall"
83            android:textColor="@color/calendar_owner_text_color" />
84    </RelativeLayout>
85
86</LinearLayout>