1<?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" 19 android:layout_width="match_parent" 20 android:layout_height="match_parent" 21 android:orientation="vertical" 22 android:focusable="true" 23 android:clickable="true"> 24 25 <!-- Header --> 26 <LinearLayout 27 android:id="@+id/header" 28 android:layout_width="match_parent" 29 android:layout_height="wrap_content" 30 android:minHeight="48dip" 31 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" /> 47 </LinearLayout> 48 49 <!-- Event list --> 50 <ListView 51 android:id="@+id/events_list" 52 android:layout_width="match_parent" 53 android:layout_height="0dip" 54 android:layout_weight="1" 55 android:layout_marginRight="4dip" 56 android:layout_marginLeft="4dip" 57 android:divider="@null" 58 android:listSelector="@android:color/transparent" 59 android:dividerHeight="3dip" 60 android:cacheColorHint="@null" 61 android:background="@drawable/cal_widget_bg"/> 62</LinearLayout> 63