Mason Tang | bb3f08a | 2010-06-22 17:03:54 -0700 | [diff] [blame] | 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" |
Mason Tang | bb3f08a | 2010-06-22 17:03:54 -0700 | [diff] [blame] | 19 | android:layout_width="match_parent" |
| 20 | android:layout_height="match_parent" |
Michael Chan | cb2d674 | 2011-09-07 14:13:10 -0700 | [diff] [blame] | 21 | android:paddingBottom="6dip" |
Mason Tang | bb3f08a | 2010-06-22 17:03:54 -0700 | [diff] [blame] | 22 | android:orientation="vertical" |
Mason Tang | bb3f08a | 2010-06-22 17:03:54 -0700 | [diff] [blame] | 23 | android:focusable="true" |
RoboErik | 3e04695 | 2011-09-13 09:34:50 -0700 | [diff] [blame] | 24 | android:clickable="true"> |
Mason Tang | bb3f08a | 2010-06-22 17:03:54 -0700 | [diff] [blame] | 25 | |
| 26 | <!-- Header --> |
Michael Chan | 309c34f | 2010-12-13 15:26:43 -0800 | [diff] [blame] | 27 | <LinearLayout |
Mason Tang | bb3f08a | 2010-06-22 17:03:54 -0700 | [diff] [blame] | 28 | android:id="@+id/header" |
| 29 | android:layout_width="match_parent" |
Peter Ng | 95d6fe0 | 2011-09-06 14:49:56 -0700 | [diff] [blame] | 30 | android:layout_height="48dip" |
RoboErik | 6416be8 | 2011-07-22 10:30:19 -0700 | [diff] [blame] | 31 | android:paddingLeft="8dip" |
RoboErik | 5eb00ea | 2011-07-19 09:47:31 -0700 | [diff] [blame] | 32 | android:paddingRight="2dip" |
Peter Ng | 95d6fe0 | 2011-09-06 14:49:56 -0700 | [diff] [blame] | 33 | android:orientation="vertical" |
Michael Chan | 629085a | 2010-12-16 18:01:43 -0800 | [diff] [blame] | 34 | android:background="@drawable/appwidget_header_selector"> |
RoboErik | ea3c818 | 2011-07-15 14:42:53 -0700 | [diff] [blame] | 35 | <TextView |
Peter Ng | 95d6fe0 | 2011-09-06 14:49:56 -0700 | [diff] [blame] | 36 | android:id="@+id/day_of_week" |
| 37 | android:textColor="@color/appwidget_week" |
| 38 | android:shadowColor="#0dffffff" |
| 39 | android:shadowRadius="3" |
| 40 | android:layout_marginRight="4dip" |
| 41 | style="@style/WidgetDayOfWeekStyle" /> |
| 42 | <TextView |
| 43 | android:id="@+id/date" |
| 44 | android:textColor="@color/appwidget_month" |
| 45 | android:layout_marginRight="4dip" |
| 46 | style="@style/WidgetMonthStyle" /> |
Michael Chan | 309c34f | 2010-12-13 15:26:43 -0800 | [diff] [blame] | 47 | </LinearLayout> |
| 48 | |
Michael Chan | aaa8ec7 | 2010-12-15 10:58:04 -0800 | [diff] [blame] | 49 | <!-- Event list --> |
Mason Tang | 47d4032 | 2010-08-09 10:57:05 -0700 | [diff] [blame] | 50 | <ListView |
| 51 | android:id="@+id/events_list" |
Mason Tang | bb3f08a | 2010-06-22 17:03:54 -0700 | [diff] [blame] | 52 | android:layout_width="match_parent" |
Michael Chan | aaa8ec7 | 2010-12-15 10:58:04 -0800 | [diff] [blame] | 53 | android:layout_height="0dip" |
| 54 | android:layout_weight="1" |
Peter Ng | 95d6fe0 | 2011-09-06 14:49:56 -0700 | [diff] [blame] | 55 | android:layout_marginRight="6dip" |
| 56 | android:layout_marginLeft="6dip" |
RoboErik | 5eb00ea | 2011-07-19 09:47:31 -0700 | [diff] [blame] | 57 | android:divider="@null" |
RoboErik | 3e04695 | 2011-09-13 09:34:50 -0700 | [diff] [blame] | 58 | android:listSelector="@android:color/transparent" |
Peter Ng | 95d6fe0 | 2011-09-06 14:49:56 -0700 | [diff] [blame] | 59 | android:dividerHeight="3dip" |
RoboErik | 3e04695 | 2011-09-13 09:34:50 -0700 | [diff] [blame] | 60 | android:cacheColorHint="@null" |
| 61 | android:background="@drawable/cal_widget_bg"/> |
Michael Chan | aaa8ec7 | 2010-12-15 10:58:04 -0800 | [diff] [blame] | 62 | </LinearLayout> |