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="48dp" 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="48dp" > 32 <ImageView 33 android:id="@+id/agenda_item_color" 34 android:layout_marginLeft="4dp" 35 android:layout_marginTop="8dp" 36 android:layout_width="16dip" 37 android:layout_height="16dip" 38 android:scaleType="fitXY" 39 android:layout_alignParentLeft="true" 40 android:layout_marginRight="4dip" /> 41 42 <LinearLayout 43 android:layout_width="wrap_content" 44 android:layout_height="wrap_content" 45 android:layout_gravity="center_vertical" 46 android:layout_marginRight="4dip" 47 android:orientation="vertical"> 48 <TextView 49 android:id="@+id/title" 50 android:layout_width="wrap_content" 51 android:layout_height="wrap_content" 52 android:maxLines="2" 53 android:textSize="14sp" 54 android:textStyle="bold" 55 android:ellipsize="marquee" 56 android:textColor="@color/appwidget_title" 57 style="?android:attr/textAppearanceMediumInverse" /> 58 59 <TextView 60 android:id="@+id/when" 61 android:layout_width="wrap_content" 62 android:layout_height="wrap_content" 63 android:layout_below="@+id/title" 64 android:layout_alignLeft="@+id/title" 65 android:singleLine="true" 66 android:textSize="12sp" 67 android:ellipsize="marquee" 68 android:textColor="@color/appwidget_when" 69 style="?android:attr/textAppearanceSmallInverse" /> 70 71 <TextView 72 android:id="@+id/where" 73 android:layout_width="wrap_content" 74 android:layout_height="wrap_content" 75 android:layout_below="@+id/when" 76 android:layout_alignLeft="@+id/title" 77 android:singleLine="true" 78 android:ellipsize="marquee" 79 android:paddingBottom="2dip" 80 android:textSize="12sp" 81 android:textColor="@color/appwidget_where" 82 style="?android:attr/textAppearanceSmallInverse" /> 83 </LinearLayout> 84 </LinearLayout> 85 86</FrameLayout> 87