From e04822f4de47853ff084f368364cda948dc38edf Mon Sep 17 00:00:00 2001 From: Jake Hamby Date: Fri, 4 Oct 2013 14:12:03 -0700 Subject: Fix overlapping text in CMAS list items. If the font is set to a large size, CMAS alerts with long titles such as "Child abduction (Amber alert)" will draw on top of the date. Fix the layout to ensure the title is left-justified and ellipsized to fit on one line if necessary. Tested with all four standard font sizes in both portrait and landscape mode. Bug: 10858267 Change-Id: I871a924d516ae29da180280e7579ff89cffdd22a --- res/layout/cell_broadcast_list_item.xml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'res/layout') diff --git a/res/layout/cell_broadcast_list_item.xml b/res/layout/cell_broadcast_list_item.xml index a039aff1..95f8ff69 100644 --- a/res/layout/cell_broadcast_list_item.xml +++ b/res/layout/cell_broadcast_list_item.xml @@ -31,8 +31,10 @@ android:layout_marginTop="6dip" android:layout_marginRight="5dip" android:layout_marginLeft="7dip" + android:layout_alignParentLeft="true" android:layout_alignParentTop="true" android:layout_alignWithParentIfMissing="true" + android:layout_toLeftOf="@+id/date" android:ellipsize="marquee" />