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 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 18 android:id="@+id/agenda_appwidget" 19 android:layout_width="match_parent" 20 android:layout_height="match_parent" 21 android:background="@drawable/appwidget_background" 22 android:focusable="true" 23 android:clickable="true"> 24 25 <ImageView 26 android:id="@+id/divider" 27 android:layout_width="match_parent" 28 android:layout_height="wrap_content" 29 android:layout_alignParentTop="true" 30 android:layout_alignParentLeft="true" 31 android:background="@drawable/appwidget_calendar_bgtop_blue" 32 android:visibility="gone" 33 /> 34 35 <TextView 36 android:id="@+id/no_events" 37 android:layout_width="match_parent" 38 android:layout_height="match_parent" 39 android:padding="10dip" 40 android:gravity="center" 41 android:textSize="14sp" 42 android:textStyle="bold" 43 android:textColor="@color/appwidget_no_events" 44 android:text="@string/gadget_no_events" 45 /> 46 47 <TextView 48 android:id="@+id/day_of_month" 49 android:layout_width="wrap_content" 50 android:layout_height="wrap_content" 51 android:layout_alignParentTop="true" 52 android:layout_alignParentRight="true" 53 android:layout_marginRight="10dip" 54 android:layout_marginTop="8dip" 55 android:textSize="30sp" 56 android:textStyle="bold" 57 android:textColor="@color/appwidget_date" 58 android:singleLine="true" 59 android:visibility="gone" 60 /> 61 62 <TextView 63 android:id="@+id/day_of_week" 64 android:layout_width="wrap_content" 65 android:layout_height="wrap_content" 66 android:layout_alignParentLeft="true" 67 android:layout_toLeftOf="@id/day_of_month" 68 android:layout_alignBottom="@id/day_of_month" 69 android:layout_alignBaseline="@id/day_of_month" 70 android:layout_marginLeft="10dip" 71 android:textSize="17sp" 72 android:textStyle="bold" 73 android:textColor="@color/appwidget_date" 74 android:singleLine="true" 75 android:visibility="gone" 76 /> 77 78 <TextView 79 android:id="@+id/when" 80 android:layout_width="match_parent" 81 android:layout_height="wrap_content" 82 android:layout_below="@id/divider" 83 android:layout_marginTop="6dip" 84 android:layout_marginLeft="10dip" 85 android:layout_marginRight="10dip" 86 android:textSize="14sp" 87 android:textStyle="bold" 88 android:textColor="@color/appwidget_when" 89 android:singleLine="true" 90 android:visibility="gone" 91 /> 92 93 <TextView 94 android:id="@+id/where" 95 android:layout_width="match_parent" 96 android:layout_height="wrap_content" 97 android:layout_alignParentBottom="true" 98 android:layout_marginBottom="6dip" 99 android:layout_marginLeft="10dip" 100 android:layout_marginRight="10dip" 101 android:textSize="11sp" 102 android:textColor="@color/appwidget_where" 103 android:maxLines="2" 104 android:visibility="gone" 105 /> 106 107 <TextView 108 android:id="@+id/conflict" 109 android:layout_width="match_parent" 110 android:layout_height="wrap_content" 111 android:layout_above="@id/where" 112 android:layout_alignWithParentIfMissing="true" 113 android:layout_marginBottom="4dip" 114 android:layout_marginLeft="10dip" 115 android:layout_marginRight="10dip" 116 android:textSize="11sp" 117 android:textColor="@color/appwidget_conflict" 118 android:singleLine="true" 119 android:visibility="gone" 120 /> 121 122 <TextView 123 android:id="@+id/title" 124 android:layout_width="match_parent" 125 android:layout_height="wrap_content" 126 android:layout_below="@id/when" 127 android:layout_above="@id/conflict" 128 android:layout_alignWithParentIfMissing="true" 129 android:layout_marginTop="3dip" 130 android:layout_marginBottom="4dip" 131 android:layout_marginLeft="10dip" 132 android:layout_marginRight="10dip" 133 android:textSize="14sp" 134 android:textStyle="bold" 135 android:textColor="@color/appwidget_title" 136 android:maxLines="4" 137 android:visibility="gone" 138 /> 139 140 </RelativeLayout> 141