1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2010 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
18
19<RelativeLayout
20    xmlns:android="http://schemas.android.com/apk/res/android"
21    android:layout_width="match_parent"
22    android:layout_height="match_parent"
23    android:background="@null">
24    <LinearLayout
25        android:id="@+id/date_group"
26        android:orientation="horizontal"
27        android:layout_width="match_parent"
28        android:layout_height="wrap_content"
29        android:layout_alignParentTop="true"
30        android:layout_toLeftOf="@id/mini_month_container"
31        android:paddingLeft="20dip"
32        android:background="@color/calendar_future_bg_color" >
33        <TextView
34            android:id="@+id/date_bar"
35            android:layout_width="wrap_content"
36            android:layout_height="42dip"
37            android:gravity="center_vertical"
38            android:textSize="24sp"/>
39        <TextView
40            android:id="@+id/week_num"
41            android:layout_width="wrap_content"
42            android:layout_height="42dip"
43            android:gravity="center_vertical"
44            android:paddingLeft="8dip"
45            android:textSize="18sp" />
46        <TextView
47            android:id="@+id/home_time"
48            android:layout_width="wrap_content"
49            android:layout_height="42dip"
50            android:layout_gravity="center_vertical|right"
51            android:gravity="center_vertical|right"
52            android:layout_weight="1"
53            android:paddingLeft="8dip"
54            android:paddingRight="8dip"
55            android:textSize="18sp" />
56    </LinearLayout>
57
58    <!-- This is a dummy view to make hiding/unhiding easier -->
59    <View
60        android:id="@+id/mini_month_container"
61        android:layout_below="@id/date_group"
62        android:layout_width="@dimen/calendar_controls_width"
63        android:layout_height="0dip"
64        android:visibility="gone"
65        android:layout_alignParentRight="true"/>
66
67     <LinearLayout
68        android:orientation="horizontal"
69        android:layout_toLeftOf="@id/mini_month_container"
70        android:layout_alignParentLeft="true"
71        android:layout_below="@id/date_group"
72        android:layout_height="match_parent"
73        android:layout_width="match_parent">
74        <FrameLayout
75            android:id="@+id/main_pane"
76            android:layout_weight="6"
77            android:layout_height="match_parent"
78            android:layout_width="0dip" />
79        <FrameLayout
80            android:id="@+id/secondary_pane"
81            android:layout_weight="4"
82            android:visibility="gone"
83            android:layout_height="match_parent"
84            android:layout_width="0dip" />
85    </LinearLayout>
86
87    <View
88        android:layout_toRightOf="@id/date_group"
89        android:background="@color/calendar_grid_line_inner_vertical_color"
90        android:layout_height="match_parent"
91        android:layout_width="1px" />
92
93    <FrameLayout
94        android:id="@+id/mini_month"
95        android:layout_alignParentTop="true"
96        android:layout_alignParentRight="true"
97        android:layout_height="262dip"
98        android:layout_width="@dimen/calendar_controls_width" />
99
100    <FrameLayout
101        android:id="@+id/calendar_list"
102        android:layout_below="@id/mini_month"
103        android:layout_alignParentRight="true"
104        android:layout_alignParentBottom="true"
105        android:layout_height="match_parent"
106        android:layout_width="@dimen/calendar_controls_width" />
107
108</RelativeLayout>
109