agenda_day.xml revision 783835bceb03a7598678cd6883ba6bddde387302
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<GridLayout
17    xmlns:android="http://schemas.android.com/apk/res/android"
18    android:background="@color/agenda_day_bar_background_color"
19    android:layout_height="wrap_content"
20    android:layout_width="match_parent"
21    android:columnCount="2"
22    android:rowCount="2">
23    <View
24        android:id="@+id/top_divider_simple"
25        android:layout_height="1px"
26        android:background="@color/agenda_list_separator_color"
27        android:layout_column="0"
28        android:layout_row="0"
29        android:layout_rowSpan="1"
30        android:layout_columnSpan="2"
31        android:layout_width="match_parent" />
32    <View
33        android:id="@+id/top_divider_past_present"
34        android:background="@color/agenda_past_present_separator_color"
35        android:visibility="gone"
36        android:layout_height="2dip"
37        android:layout_column="0"
38        android:layout_row="0"
39        android:layout_rowSpan="1"
40        android:layout_columnSpan="2"
41        android:layout_width="match_parent" />
42    <TextView
43        android:id="@+id/date"
44        android:layout_height="wrap_content"
45        android:layout_width="wrap_content"
46        android:layout_column="0"
47        android:layout_row="1"
48        android:layout_gravity="center_vertical|left"
49        android:paddingLeft="16dip"
50        android:layout_marginTop="2dip"
51        android:textSize="24sp"
52        android:singleLine="true"
53        android:minHeight="42dip"
54        android:textColor="@color/agenda_day_item_text_color" />
55    <TextView
56        android:id="@+id/day"
57        android:layout_height="wrap_content"
58        android:layout_width="0dip"
59        android:gravity="center_vertical"
60        android:layout_gravity="center_vertical|fill_horizontal"
61        android:layout_column="1"
62        android:layout_row="1"
63        android:layout_marginTop="2dip"
64        android:layout_marginLeft="8dip"
65        android:layout_marginRight="@dimen/agenda_item_right_margin"
66        android:ellipsize="marquee"
67        android:textSize="14sp"
68        android:singleLine="true"
69        android:minHeight="42dip"
70        android:textColor="@color/agenda_day_item_text_color" />
71</GridLayout>
72