• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2011 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<FrameLayout
18    xmlns:android="http://schemas.android.com/apk/res/android"
19    android:id="@android:id/content"
20    android:layout_height="wrap_content"
21    android:layout_width="match_parent"
22    android:minHeight="?android:attr/listPreferredItemHeight"
23    android:background="@drawable/bg_event_cal_widget_holo">
24
25    <LinearLayout
26        android:id="@+id/widget_row"
27        android:layout_height="wrap_content"
28        android:layout_width="match_parent"
29        android:paddingBottom="2dp"
30        android:orientation="horizontal"
31        android:minHeight="?android:attr/listPreferredItemHeight" >
32        <ImageView
33            android:id="@+id/agenda_item_color"
34            android:layout_width="12dip"
35            android:layout_height="12dip"
36            android:scaleType="fitXY"
37            android:layout_alignParentLeft="true"
38            android:layout_marginRight="4dip" />
39
40        <LinearLayout
41            android:layout_width="wrap_content"
42            android:layout_height="wrap_content"
43            android:layout_gravity="center_vertical"
44            android:layout_marginRight="4dip"
45            android:orientation="vertical">
46            <TextView
47                android:id="@+id/title"
48                android:layout_width="wrap_content"
49                android:layout_height="wrap_content"
50                android:maxLines="2"
51                android:textSize="14sp"
52                android:textStyle="bold"
53                android:ellipsize="marquee"
54                android:textColor="@color/appwidget_title"
55                style="?android:attr/textAppearanceMediumInverse" />
56
57            <TextView
58                android:id="@+id/when"
59                android:layout_width="wrap_content"
60                android:layout_height="wrap_content"
61                android:layout_below="@+id/title"
62                android:layout_alignLeft="@+id/title"
63                android:singleLine="true"
64                android:textSize="12sp"
65                android:ellipsize="marquee"
66                android:textColor="@color/appwidget_when"
67                style="?android:attr/textAppearanceSmallInverse" />
68
69            <TextView
70                android:id="@+id/where"
71                android:layout_width="wrap_content"
72                android:layout_height="wrap_content"
73                android:layout_below="@+id/when"
74                android:layout_alignLeft="@+id/title"
75                android:singleLine="true"
76                android:ellipsize="marquee"
77                android:textSize="12sp"
78                android:textColor="@color/appwidget_where"
79                style="?android:attr/textAppearanceSmallInverse" />
80        </LinearLayout>
81    </LinearLayout>
82
83</FrameLayout>
84