diff options
author | Jake Hamby <jhamby@google.com> | 2013-10-04 14:12:03 -0700 |
---|---|---|
committer | Jake Hamby <jhamby@google.com> | 2013-10-04 14:15:10 -0700 |
commit | e04822f4de47853ff084f368364cda948dc38edf (patch) | |
tree | 0b72b976b8bcf9f5b10dc92f3f16bd84742078f5 /res/layout | |
parent | 5fc75b2cd9290e119fab03119734bc71227e234e (diff) | |
download | android_packages_apps_CellBroadcastReceiver-e04822f4de47853ff084f368364cda948dc38edf.tar.gz android_packages_apps_CellBroadcastReceiver-e04822f4de47853ff084f368364cda948dc38edf.tar.bz2 android_packages_apps_CellBroadcastReceiver-e04822f4de47853ff084f368364cda948dc38edf.zip |
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
Diffstat (limited to 'res/layout')
-rw-r--r-- | res/layout/cell_broadcast_list_item.xml | 4 |
1 files changed, 3 insertions, 1 deletions
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" /> <TextView android:id="@+id/date" @@ -50,7 +52,7 @@ android:layout_height="wrap_content" android:textAppearance="?android:attr/textAppearanceSmallInverse" android:singleLine="true" - android:layout_marginBottom="10dip" + android:layout_marginBottom="6dip" android:layout_marginLeft="7dip" android:layout_alignParentBottom="true" android:layout_alignWithParentIfMissing="true" |