blob: e27bcc99325fd3e9729ebb978d55f163f13a0977 [file] [log] [blame]
Mason Tangbb3f08a2010-06-22 17:03:54 -07001<?xml version="1.0" encoding="utf-8"?>
Sam Blitzsteinc81d17c2012-09-06 16:46:45 -07002<!--
3 Copyright (C) 2009 The Android Open Source Project
Mason Tangbb3f08a2010-06-22 17:03:54 -07004
5 Licensed under the Apache License, Version 2.0 (the "License");
6 you may not use this file except in compliance with the License.
7 You may obtain a copy of the License at
8
9 http://www.apache.org/licenses/LICENSE-2.0
10
11 Unless required by applicable law or agreed to in writing, software
12 distributed under the License is distributed on an "AS IS" BASIS,
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 See the License for the specific language governing permissions and
15 limitations under the License.
16-->
Sam Blitzsteinc81d17c2012-09-06 16:46:45 -070017<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
Mason Tangbb3f08a2010-06-22 17:03:54 -070018 android:layout_width="match_parent"
19 android:layout_height="match_parent"
Sam Blitzsteinc81d17c2012-09-06 16:46:45 -070020 android:clickable="true"
Mason Tangbb3f08a2010-06-22 17:03:54 -070021 android:focusable="true"
Sam Blitzsteinc81d17c2012-09-06 16:46:45 -070022 android:orientation="vertical" >
Mason Tangbb3f08a2010-06-22 17:03:54 -070023
24 <!-- Header -->
Sam Blitzsteinc81d17c2012-09-06 16:46:45 -070025
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:background="@drawable/appwidget_header_selector"
Michael Chan6f751f22011-10-07 13:21:22 -070031 android:gravity="center_vertical|left"
Sam Blitzsteinc81d17c2012-09-06 16:46:45 -070032 android:minHeight="48dip"
33 android:paddingLeft="5dip"
34 android:paddingRight="2dip" >
35
36 <ImageView
37 android:layout_width="32dip"
38 android:layout_height="32dip"
39 android:scaleType="centerInside"
40 android:src="@mipmap/ic_launcher_calendar" />
41
42 <LinearLayout
43 android:layout_width="0dip"
44 android:layout_height="wrap_content"
45 android:orientation="vertical"
46 android:layout_weight="1"
47 android:paddingLeft="8dip" >
48
49 <TextView
50 android:id="@+id/day_of_week"
51 style="@style/WidgetDayOfWeekStyle"
52 android:shadowColor="#0dffffff"
53 android:shadowRadius="3"
54 android:textColor="@color/appwidget_week" />
55
56 <TextView
57 android:id="@+id/date"
58 style="@style/WidgetDateStyle"
59 android:textColor="@color/appwidget_month" />
60 </LinearLayout>
Michael Chan309c34f2010-12-13 15:26:43 -080061 </LinearLayout>
62
Michael Chanaaa8ec72010-12-15 10:58:04 -080063 <!-- Event list -->
Mason Tang47d40322010-08-09 10:57:05 -070064 <ListView
65 android:id="@+id/events_list"
Mason Tangbb3f08a2010-06-22 17:03:54 -070066 android:layout_width="match_parent"
Michael Chanaaa8ec72010-12-15 10:58:04 -080067 android:layout_height="0dip"
Peter Ng818431b2011-10-12 16:50:15 -070068 android:layout_marginLeft="4dip"
Sam Blitzsteinc81d17c2012-09-06 16:46:45 -070069 android:layout_marginRight="4dip"
70 android:layout_weight="1"
71 android:background="@drawable/cal_widget_bg"
RoboErik3e046952011-09-13 09:34:50 -070072 android:cacheColorHint="@null"
Sam Blitzsteinc81d17c2012-09-06 16:46:45 -070073 android:divider="@null"
74 android:dividerHeight="3dip"
75 android:listSelector="@android:color/transparent" >
76 </ListView>
77
78</LinearLayout>