blob: 31852dcb37580fff11192d1a67cf60490213b89d [file] [log] [blame]
Mason Tangbb3f08a2010-06-22 17:03:54 -07001<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2009 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
18 xmlns:android="http://schemas.android.com/apk/res/android"
Mason Tangbb3f08a2010-06-22 17:03:54 -070019 android:layout_width="match_parent"
20 android:layout_height="match_parent"
21 android:orientation="vertical"
Michael Chan309c34f2010-12-13 15:26:43 -080022 android:background="@drawable/gradient_bg_cal_widget_holo"
Mason Tangbb3f08a2010-06-22 17:03:54 -070023 android:focusable="true"
24 android:clickable="true">
25
26 <!-- Header -->
Michael Chan309c34f2010-12-13 15:26:43 -080027 <LinearLayout
Mason Tangbb3f08a2010-06-22 17:03:54 -070028 android:id="@+id/header"
29 android:layout_width="match_parent"
Mason Tangb61402e2010-08-25 17:01:02 -070030 android:layout_height="wrap_content"
Michael Chan309c34f2010-12-13 15:26:43 -080031 android:orientation="horizontal"
32 android:paddingLeft="19dip"
33 android:paddingRight="8dip"
34 android:background="@drawable/header_bg_cal_widget_holo">
Daisuke Miyakawa50088e32010-10-22 20:49:32 -070035 <LinearLayout
36 android:id="@+id/holder"
37 android:layout_width="wrap_content"
38 android:layout_height="wrap_content"
Michael Chan309c34f2010-12-13 15:26:43 -080039 android:layout_gravity="center_vertical"
40 android:layout_marginRight="5dip"
Daisuke Miyakawa50088e32010-10-22 20:49:32 -070041 android:orientation="vertical">
42 <TextView
Michael Chan309c34f2010-12-13 15:26:43 -080043 android:id="@+id/day_of_week"
44 android:layout_width="wrap_content"
45 android:layout_height="wrap_content"
46 android:layout_marginBottom="-6dip"
47 android:textColor="@color/appwidget_week"
48 android:textSize="14sp"
49 android:textStyle="bold"
50 android:shadowColor="@color/text_shadow_color"
51 android:shadowRadius="1"
52 android:gravity="left"
53 android:singleLine="true" />
Daisuke Miyakawa50088e32010-10-22 20:49:32 -070054 <TextView
Michael Chan309c34f2010-12-13 15:26:43 -080055 android:id="@+id/month"
56 android:layout_width="wrap_content"
57 android:layout_height="wrap_content"
58 android:textColor="@color/appwidget_month"
59 android:textSize="14sp"
60 android:shadowColor="@color/text_shadow_color"
61 android:shadowRadius="1"
62 android:gravity="left"
63 android:singleLine="true" />
Daisuke Miyakawa50088e32010-10-22 20:49:32 -070064 </LinearLayout>
Michael Chan309c34f2010-12-13 15:26:43 -080065 <FrameLayout
Daisuke Miyakawaa71e0a52010-10-19 14:54:09 -070066 android:layout_width="wrap_content"
67 android:layout_height="wrap_content"
Michael Chan309c34f2010-12-13 15:26:43 -080068 android:layout_weight="1"
69 android:layout_gravity="center_vertical|left"
70 android:layout_toRightOf="@id/holder">
71 <TextView
72 android:id="@+id/day_of_month_shadow"
73 android:layout_width="wrap_content"
74 android:layout_height="wrap_content"
75 android:textColor="@color/appwidget_date"
76 android:textSize="42sp"
77 android:textStyle="bold"
78 android:shadowColor="@color/text_shadow_color"
79 android:shadowRadius="3"
80 android:gravity="left"
81 android:singleLine="true" />
82 <TextView
83 android:id="@+id/day_of_month"
84 android:layout_width="wrap_content"
85 android:layout_height="wrap_content"
86 android:textColor="@color/appwidget_date"
87 android:textSize="42sp"
88 android:textStyle="bold"
89 android:shadowColor="#FF000000"
90 android:shadowRadius="1"
91 android:gravity="left"
92 android:singleLine="true" />
93 </FrameLayout>
Mason Tange700c162010-07-09 14:06:20 -070094 <ImageButton
95 android:id="@+id/new_event_button"
Mason Tangbb3f08a2010-06-22 17:03:54 -070096 android:layout_width="wrap_content"
Daisuke Miyakawaa71e0a52010-10-19 14:54:09 -070097 android:layout_height="wrap_content"
Michael Chan309c34f2010-12-13 15:26:43 -080098 android:layout_gravity="center_vertical|right"
99 android:src="@drawable/btn_ic_new_event_cal_widget_holo_dark"
100 android:background="@null" />
101 </LinearLayout>
102
103 <!-- Separator -->
104 <ImageView
105 android:layout_width="match_parent"
106 android:layout_height="wrap_content"
107 android:background="@drawable/list_div_top_btm_cal_widget_holo"
108 android:focusable="false"
109 android:clickable="false" />
Mason Tangbb3f08a2010-06-22 17:03:54 -0700110
Mason Tang47d40322010-08-09 10:57:05 -0700111 <!-- Events container -->
112 <ListView
113 android:id="@+id/events_list"
Mason Tangbb3f08a2010-06-22 17:03:54 -0700114 android:layout_width="match_parent"
115 android:layout_height="match_parent"
Michael Chan309c34f2010-12-13 15:26:43 -0800116 android:layout_marginLeft="0dip"
117 android:layout_marginRight="0dip"
Daisuke Miyakawa50088e32010-10-22 20:49:32 -0700118 android:divider="#00000000"
Daisuke Miyakawaa71e0a52010-10-19 14:54:09 -0700119 android:dividerHeight="0dip"
Michael Chan309c34f2010-12-13 15:26:43 -0800120 android:cacheColorHint="#00000000" />
121</LinearLayout>