Mason Tang | bb3f08a | 2010-06-22 17:03:54 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
Sam Blitzstein | c81d17c | 2012-09-06 16:46:45 -0700 | [diff] [blame^] | 2 | <!-- |
| 3 | Copyright (C) 2009 The Android Open Source Project |
Mason Tang | bb3f08a | 2010-06-22 17:03:54 -0700 | [diff] [blame] | 4 | |
| 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 Blitzstein | c81d17c | 2012-09-06 16:46:45 -0700 | [diff] [blame^] | 17 | <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
Mason Tang | bb3f08a | 2010-06-22 17:03:54 -0700 | [diff] [blame] | 18 | android:layout_width="match_parent" |
| 19 | android:layout_height="match_parent" |
Sam Blitzstein | c81d17c | 2012-09-06 16:46:45 -0700 | [diff] [blame^] | 20 | android:clickable="true" |
Mason Tang | bb3f08a | 2010-06-22 17:03:54 -0700 | [diff] [blame] | 21 | android:focusable="true" |
Sam Blitzstein | c81d17c | 2012-09-06 16:46:45 -0700 | [diff] [blame^] | 22 | android:orientation="vertical" > |
Mason Tang | bb3f08a | 2010-06-22 17:03:54 -0700 | [diff] [blame] | 23 | |
| 24 | <!-- Header --> |
Sam Blitzstein | c81d17c | 2012-09-06 16:46:45 -0700 | [diff] [blame^] | 25 | |
Michael Chan | 309c34f | 2010-12-13 15:26:43 -0800 | [diff] [blame] | 26 | <LinearLayout |
Mason Tang | bb3f08a | 2010-06-22 17:03:54 -0700 | [diff] [blame] | 27 | android:id="@+id/header" |
| 28 | android:layout_width="match_parent" |
Michael Chan | 6f751f2 | 2011-10-07 13:21:22 -0700 | [diff] [blame] | 29 | android:layout_height="wrap_content" |
Sam Blitzstein | c81d17c | 2012-09-06 16:46:45 -0700 | [diff] [blame^] | 30 | android:background="@drawable/appwidget_header_selector" |
Michael Chan | 6f751f2 | 2011-10-07 13:21:22 -0700 | [diff] [blame] | 31 | android:gravity="center_vertical|left" |
Sam Blitzstein | c81d17c | 2012-09-06 16:46:45 -0700 | [diff] [blame^] | 32 | 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 Chan | 309c34f | 2010-12-13 15:26:43 -0800 | [diff] [blame] | 61 | </LinearLayout> |
| 62 | |
Michael Chan | aaa8ec7 | 2010-12-15 10:58:04 -0800 | [diff] [blame] | 63 | <!-- Event list --> |
Mason Tang | 47d4032 | 2010-08-09 10:57:05 -0700 | [diff] [blame] | 64 | <ListView |
| 65 | android:id="@+id/events_list" |
Mason Tang | bb3f08a | 2010-06-22 17:03:54 -0700 | [diff] [blame] | 66 | android:layout_width="match_parent" |
Michael Chan | aaa8ec7 | 2010-12-15 10:58:04 -0800 | [diff] [blame] | 67 | android:layout_height="0dip" |
Peter Ng | 818431b | 2011-10-12 16:50:15 -0700 | [diff] [blame] | 68 | android:layout_marginLeft="4dip" |
Sam Blitzstein | c81d17c | 2012-09-06 16:46:45 -0700 | [diff] [blame^] | 69 | android:layout_marginRight="4dip" |
| 70 | android:layout_weight="1" |
| 71 | android:background="@drawable/cal_widget_bg" |
RoboErik | 3e04695 | 2011-09-13 09:34:50 -0700 | [diff] [blame] | 72 | android:cacheColorHint="@null" |
Sam Blitzstein | c81d17c | 2012-09-06 16:46:45 -0700 | [diff] [blame^] | 73 | android:divider="@null" |
| 74 | android:dividerHeight="3dip" |
| 75 | android:listSelector="@android:color/transparent" > |
| 76 | </ListView> |
| 77 | |
| 78 | </LinearLayout> |