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" |
| 21 | android:orientation="vertical" |
Michael Chan | 309c34f | 2010-12-13 15:26:43 -0800 | [diff] [blame^] | 22 | android:background="@drawable/gradient_bg_cal_widget_holo" |
Mason Tang | bb3f08a | 2010-06-22 17:03:54 -0700 | [diff] [blame] | 23 | android:focusable="true" |
| 24 | android:clickable="true"> |
| 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" |
Mason Tang | b61402e | 2010-08-25 17:01:02 -0700 | [diff] [blame] | 30 | android:layout_height="wrap_content" |
Michael Chan | 309c34f | 2010-12-13 15:26:43 -0800 | [diff] [blame^] | 31 | android:orientation="horizontal" |
| 32 | android:paddingLeft="19dip" |
| 33 | android:paddingRight="8dip" |
| 34 | android:background="@drawable/header_bg_cal_widget_holo"> |
Daisuke Miyakawa | 50088e3 | 2010-10-22 20:49:32 -0700 | [diff] [blame] | 35 | <LinearLayout |
| 36 | android:id="@+id/holder" |
| 37 | android:layout_width="wrap_content" |
| 38 | android:layout_height="wrap_content" |
Michael Chan | 309c34f | 2010-12-13 15:26:43 -0800 | [diff] [blame^] | 39 | android:layout_gravity="center_vertical" |
| 40 | android:layout_marginRight="5dip" |
Daisuke Miyakawa | 50088e3 | 2010-10-22 20:49:32 -0700 | [diff] [blame] | 41 | android:orientation="vertical"> |
| 42 | <TextView |
Michael Chan | 309c34f | 2010-12-13 15:26:43 -0800 | [diff] [blame^] | 43 | android:id="@+id/day_of_week" |
| 44 | android:layout_width="wrap_content" |
| 45 | android:layout_height="wrap_content" |
| 46 | android:layout_marginBottom="-6dip" |
| 47 | android:textColor="@color/appwidget_week" |
| 48 | android:textSize="14sp" |
| 49 | android:textStyle="bold" |
| 50 | android:shadowColor="@color/text_shadow_color" |
| 51 | android:shadowRadius="1" |
| 52 | android:gravity="left" |
| 53 | android:singleLine="true" /> |
Daisuke Miyakawa | 50088e3 | 2010-10-22 20:49:32 -0700 | [diff] [blame] | 54 | <TextView |
Michael Chan | 309c34f | 2010-12-13 15:26:43 -0800 | [diff] [blame^] | 55 | android:id="@+id/month" |
| 56 | android:layout_width="wrap_content" |
| 57 | android:layout_height="wrap_content" |
| 58 | android:textColor="@color/appwidget_month" |
| 59 | android:textSize="14sp" |
| 60 | android:shadowColor="@color/text_shadow_color" |
| 61 | android:shadowRadius="1" |
| 62 | android:gravity="left" |
| 63 | android:singleLine="true" /> |
Daisuke Miyakawa | 50088e3 | 2010-10-22 20:49:32 -0700 | [diff] [blame] | 64 | </LinearLayout> |
Michael Chan | 309c34f | 2010-12-13 15:26:43 -0800 | [diff] [blame^] | 65 | <FrameLayout |
Daisuke Miyakawa | a71e0a5 | 2010-10-19 14:54:09 -0700 | [diff] [blame] | 66 | android:layout_width="wrap_content" |
| 67 | android:layout_height="wrap_content" |
Michael Chan | 309c34f | 2010-12-13 15:26:43 -0800 | [diff] [blame^] | 68 | android:layout_weight="1" |
| 69 | android:layout_gravity="center_vertical|left" |
| 70 | android:layout_toRightOf="@id/holder"> |
| 71 | <TextView |
| 72 | android:id="@+id/day_of_month_shadow" |
| 73 | android:layout_width="wrap_content" |
| 74 | android:layout_height="wrap_content" |
| 75 | android:textColor="@color/appwidget_date" |
| 76 | android:textSize="42sp" |
| 77 | android:textStyle="bold" |
| 78 | android:shadowColor="@color/text_shadow_color" |
| 79 | android:shadowRadius="3" |
| 80 | android:gravity="left" |
| 81 | android:singleLine="true" /> |
| 82 | <TextView |
| 83 | android:id="@+id/day_of_month" |
| 84 | android:layout_width="wrap_content" |
| 85 | android:layout_height="wrap_content" |
| 86 | android:textColor="@color/appwidget_date" |
| 87 | android:textSize="42sp" |
| 88 | android:textStyle="bold" |
| 89 | android:shadowColor="#FF000000" |
| 90 | android:shadowRadius="1" |
| 91 | android:gravity="left" |
| 92 | android:singleLine="true" /> |
| 93 | </FrameLayout> |
Mason Tang | e700c16 | 2010-07-09 14:06:20 -0700 | [diff] [blame] | 94 | <ImageButton |
| 95 | android:id="@+id/new_event_button" |
Mason Tang | bb3f08a | 2010-06-22 17:03:54 -0700 | [diff] [blame] | 96 | android:layout_width="wrap_content" |
Daisuke Miyakawa | a71e0a5 | 2010-10-19 14:54:09 -0700 | [diff] [blame] | 97 | android:layout_height="wrap_content" |
Michael Chan | 309c34f | 2010-12-13 15:26:43 -0800 | [diff] [blame^] | 98 | android:layout_gravity="center_vertical|right" |
| 99 | android:src="@drawable/btn_ic_new_event_cal_widget_holo_dark" |
| 100 | android:background="@null" /> |
| 101 | </LinearLayout> |
| 102 | |
| 103 | <!-- Separator --> |
| 104 | <ImageView |
| 105 | android:layout_width="match_parent" |
| 106 | android:layout_height="wrap_content" |
| 107 | android:background="@drawable/list_div_top_btm_cal_widget_holo" |
| 108 | android:focusable="false" |
| 109 | android:clickable="false" /> |
Mason Tang | bb3f08a | 2010-06-22 17:03:54 -0700 | [diff] [blame] | 110 | |
Mason Tang | 47d4032 | 2010-08-09 10:57:05 -0700 | [diff] [blame] | 111 | <!-- Events container --> |
| 112 | <ListView |
| 113 | android:id="@+id/events_list" |
Mason Tang | bb3f08a | 2010-06-22 17:03:54 -0700 | [diff] [blame] | 114 | android:layout_width="match_parent" |
| 115 | android:layout_height="match_parent" |
Michael Chan | 309c34f | 2010-12-13 15:26:43 -0800 | [diff] [blame^] | 116 | android:layout_marginLeft="0dip" |
| 117 | android:layout_marginRight="0dip" |
Daisuke Miyakawa | 50088e3 | 2010-10-22 20:49:32 -0700 | [diff] [blame] | 118 | android:divider="#00000000" |
Daisuke Miyakawa | a71e0a5 | 2010-10-19 14:54:09 -0700 | [diff] [blame] | 119 | android:dividerHeight="0dip" |
Michael Chan | 309c34f | 2010-12-13 15:26:43 -0800 | [diff] [blame^] | 120 | android:cacheColorHint="#00000000" /> |
| 121 | </LinearLayout> |