• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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="fill_parent"
20    android:layout_height="wrap_content"
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="fill_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="fill_parent"
38        android:layout_height="fill_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="wrap_content"
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="fill_parent"
96        android:layout_height="wrap_content"
97        android:layout_alignParentBottom="true"
98        android:paddingBottom="6dip"
99        android:layout_marginLeft="10dip"
100        android:layout_marginRight="10dip"
101        android:textSize="11sp"
102        android:textColor="@color/appwidget_where"
103        android:singleLine="true"
104        android:visibility="gone"
105        />
106
107    <TextView
108        android:id="@+id/conflict"
109        android:layout_width="wrap_content"
110        android:layout_height="wrap_content"
111        android:layout_below="@id/divider"
112        android:layout_toRightOf="@+id/when"
113        android:layout_alignParentRight="true"
114        android:layout_marginTop="5dip"
115        android:layout_marginLeft="10dip"
116        android:layout_marginRight="10dip"
117        android:gravity="right"
118        android:textSize="11sp"
119        android:textColor="@color/appwidget_conflict"
120        android:singleLine="true"
121        android:visibility="gone"
122        />
123
124    <TextView
125        android:id="@+id/title"
126        android:layout_width="fill_parent"
127        android:layout_height="wrap_content"
128        android:layout_below="@id/when"
129        android:layout_above="@id/where"
130        android:layout_alignWithParentIfMissing="true"
131        android:layout_marginTop="3dip"
132        android:layout_marginLeft="10dip"
133        android:layout_marginRight="10dip"
134        android:textSize="14sp"
135        android:textStyle="bold"
136        android:textColor="@color/appwidget_title"
137        android:singleLine="true"
138        android:visibility="gone"
139        />
140
141</RelativeLayout>
142