widget_item.xml revision e5d35d26ec8e6f6fb5f558cfc3b5250280608cda
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
18<FrameLayout
19    xmlns:android="http://schemas.android.com/apk/res/android"
20    android:id="@android:id/content"
21    android:layout_height="64dip"
22    android:layout_width="match_parent"
23    android:minHeight="?android:attr/listPreferredItemHeight">
24    <FrameLayout
25        android:id="@+id/bg_color"
26        android:layout_height="match_parent"
27        android:layout_width="match_parent"
28        android:layout_marginTop="3dip"
29        android:layout_marginLeft="2dip"
30        android:background="@color/calendar_future_bg_color" />
31
32    <LinearLayout
33        android:id="@+id/widget_row"
34        android:layout_height="match_parent"
35        android:layout_width="match_parent"
36        android:orientation="horizontal"
37        android:layout_marginTop="1dip"
38        android:minHeight="?android:attr/listPreferredItemHeight">
39        <ImageView
40            android:id="@+id/agenda_item_color"
41            android:layout_width="12dip"
42            android:layout_height="12dip"
43            android:scaleType="fitXY"
44            android:layout_alignParentLeft="true"
45            android:layout_marginRight="4dip" />
46
47        <LinearLayout
48            android:layout_width="wrap_content"
49            android:layout_height="wrap_content"
50            android:layout_gravity="center_vertical"
51            android:layout_marginRight="16dip"
52            android:orientation="vertical">
53            <TextView
54                android:id="@+id/title"
55                android:layout_width="wrap_content"
56                android:layout_height="wrap_content"
57                android:singleLine="true"
58                android:textSize="14sp"
59                android:textStyle="bold"
60                android:ellipsize="marquee"
61                android:textColor="?android:attr/textColorSecondary"
62                style="?android:attr/textAppearanceMediumInverse" />
63
64            <TextView
65                android:id="@+id/when"
66                android:layout_width="wrap_content"
67                android:layout_height="wrap_content"
68                android:layout_below="@+id/title"
69                android:layout_alignLeft="@+id/title"
70                android:singleLine="true"
71                android:textSize="12sp"
72                android:ellipsize="marquee"
73                android:textColor="?android:attr/textColorSecondary"
74                style="?android:attr/textAppearanceSmallInverse" />
75
76            <TextView
77                android:id="@+id/where"
78                android:layout_width="wrap_content"
79                android:layout_height="wrap_content"
80                android:layout_below="@+id/when"
81                android:layout_alignLeft="@+id/title"
82                android:singleLine="true"
83                android:ellipsize="marquee"
84                android:textSize="12sp"
85                android:textColor="@color/agenda_item_where_text_color"
86                style="?android:attr/textAppearanceSmallInverse" />
87        </LinearLayout>
88    </LinearLayout>
89
90</FrameLayout>
91