blob: 4fb2c15a0205d8b0a8d07735e7f340c17ca2d87b [file] [log] [blame]
Mason Tangbb3f08a2010-06-22 17:03:54 -07001<?xml version="1.0" encoding="utf-8"?>
Michael Chan294aed72012-10-04 17:07:56 -07002<!-- Copyright (C) 2009 The Android Open Source Project
Mason Tangbb3f08a2010-06-22 17:03:54 -07003
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-->
Michael Chan294aed72012-10-04 17:07:56 -070016
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"
Michael Chan294aed72012-10-04 17:07:56 -070021 android:orientation="vertical"
Mason Tangbb3f08a2010-06-22 17:03:54 -070022 android:focusable="true"
Michael Chan294aed72012-10-04 17:07:56 -070023 android:clickable="true">
Mason Tangbb3f08a2010-06-22 17:03:54 -070024
25 <!-- Header -->
Michael Chan309c34f2010-12-13 15:26:43 -080026 <LinearLayout
Mason Tangbb3f08a2010-06-22 17:03:54 -070027 android:id="@+id/header"
28 android:layout_width="match_parent"
Michael Chan6f751f22011-10-07 13:21:22 -070029 android:layout_height="wrap_content"
Sam Blitzsteinc81d17c2012-09-06 16:46:45 -070030 android:minHeight="48dip"
Michael Chan294aed72012-10-04 17:07:56 -070031 android:gravity="center_vertical|left"
32 android:paddingLeft="8dip"
33 android:paddingRight="2dip"
34 android:orientation="vertical"
35 android:background="@drawable/appwidget_header_selector">
36 <TextView
37 android:id="@+id/day_of_week"
38 android:layout_marginTop="4dip"
39 android:textColor="@color/appwidget_week"
40 android:shadowColor="#0dffffff"
41 android:shadowRadius="3"
42 style="@style/WidgetDayOfWeekStyle" />
43 <TextView
44 android:id="@+id/date"
45 android:textColor="@color/appwidget_month"
46 style="@style/WidgetDateStyle" />
Michael Chan309c34f2010-12-13 15:26:43 -080047 </LinearLayout>
48
Michael Chanaaa8ec72010-12-15 10:58:04 -080049 <!-- Event list -->
Mason Tang47d40322010-08-09 10:57:05 -070050 <ListView
51 android:id="@+id/events_list"
Mason Tangbb3f08a2010-06-22 17:03:54 -070052 android:layout_width="match_parent"
Michael Chanaaa8ec72010-12-15 10:58:04 -080053 android:layout_height="0dip"
Sam Blitzsteinc81d17c2012-09-06 16:46:45 -070054 android:layout_weight="1"
Michael Chan294aed72012-10-04 17:07:56 -070055 android:layout_marginRight="4dip"
56 android:layout_marginLeft="4dip"
Sam Blitzsteinc81d17c2012-09-06 16:46:45 -070057 android:divider="@null"
Michael Chan294aed72012-10-04 17:07:56 -070058 android:listSelector="@android:color/transparent"
Sam Blitzsteinc81d17c2012-09-06 16:46:45 -070059 android:dividerHeight="3dip"
Michael Chan294aed72012-10-04 17:07:56 -070060 android:cacheColorHint="@null"
61 android:background="@drawable/cal_widget_bg"/>
62</LinearLayout>