summaryrefslogtreecommitdiffstats
path: root/res/layout/widget_all_day_item.xml
diff options
context:
space:
mode:
authorRoboErik <epastern@google.com>2011-11-15 11:30:57 -0800
committerRoboErik <epastern@google.com>2011-11-15 11:41:22 -0800
commite8f077e1c047729809b1ceb4bddce806de8ab003 (patch)
treeaf596f97e6343a85b324e854c38433eadf64066a /res/layout/widget_all_day_item.xml
parent3a2529f508c0f8d15942b6b1fbbbae336729835c (diff)
downloadandroid_packages_apps_Calendar-e8f077e1c047729809b1ceb4bddce806de8ab003.tar.gz
android_packages_apps_Calendar-e8f077e1c047729809b1ceb4bddce806de8ab003.tar.bz2
android_packages_apps_Calendar-e8f077e1c047729809b1ceb4bddce806de8ab003.zip
b/5340881 Update Widget to show allDay events nicely
We were hiding all day events because we didn't have a good way of showing them. This adds much better treatment for all day events in the widget and reshows them. Change-Id: I333e7808e8d9e61c1f5b866aa5c73ac2c8b8b6d9
Diffstat (limited to 'res/layout/widget_all_day_item.xml')
-rw-r--r--res/layout/widget_all_day_item.xml79
1 files changed, 22 insertions, 57 deletions
diff --git a/res/layout/widget_all_day_item.xml b/res/layout/widget_all_day_item.xml
index fbe01b48..658804b8 100644
--- a/res/layout/widget_all_day_item.xml
+++ b/res/layout/widget_all_day_item.xml
@@ -17,67 +17,32 @@
<FrameLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@android:id/content"
- android:layout_height="wrap_content"
+ android:layout_height="24dip"
android:layout_width="match_parent"
- android:minHeight="?android:attr/listPreferredItemHeight"
android:background="@drawable/bg_event_cal_widget_holo">
-
- <LinearLayout
+ <FrameLayout
android:id="@+id/widget_row"
- android:layout_height="wrap_content"
android:layout_width="match_parent"
- android:paddingBottom="2dp"
- android:orientation="horizontal"
- android:minHeight="?android:attr/listPreferredItemHeight">
- <ImageView
- android:id="@+id/agenda_item_color"
- android:layout_width="12dip"
- android:layout_height="24dip"
- android:scaleType="fitXY"
- android:layout_alignParentLeft="true"
- android:layout_marginRight="4dip" />
-
- <LinearLayout
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="center_vertical"
- android:layout_marginRight="4dip"
- android:orientation="vertical">
- <TextView
- android:id="@+id/title"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:maxLines="2"
- android:textSize="14sp"
- android:textStyle="bold"
- android:ellipsize="marquee"
- android:textColor="@color/appwidget_title"
- style="?android:attr/textAppearanceMediumInverse" />
-
- <TextView
- android:id="@+id/when"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_below="@+id/title"
- android:layout_alignLeft="@+id/title"
- android:singleLine="true"
- android:textSize="12sp"
- android:ellipsize="marquee"
- android:textColor="@color/appwidget_when"
- style="?android:attr/textAppearanceSmallInverse" />
+ android:layout_height="match_parent"
+ />
- <TextView
- android:id="@+id/where"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_below="@+id/when"
- android:layout_alignLeft="@+id/title"
- android:singleLine="true"
- android:ellipsize="marquee"
- android:textSize="12sp"
- android:textColor="@color/appwidget_where"
- style="?android:attr/textAppearanceSmallInverse" />
- </LinearLayout>
- </LinearLayout>
+ <ImageView
+ android:id="@+id/agenda_item_color"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:scaleType="fitXY"
+ android:layout_alignParentLeft="true"/>
+ <TextView
+ android:id="@+id/title"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:paddingLeft="4dip"
+ android:singleLine="true"
+ android:textSize="14sp"
+ android:textStyle="bold"
+ android:ellipsize="marquee"
+ android:textColor="@color/appwidget_title"
+ android:gravity="center_vertical|left"
+ style="?android:attr/textAppearanceMediumInverse" />
</FrameLayout>