From 358a8157015c7cfe9ca219a9f516656f5975666d Mon Sep 17 00:00:00 2001 From: Andy Huang Date: Wed, 2 Nov 2011 15:33:38 -0700 Subject: [PATCH] Style cleanup in email message header to make it more like Gmail Linkify email addresses in expanded message details Remove divider line in upper header on phone Embolden sender name Twiddle expanded details line spacing and padding to match Gmail Add space char to collapsed details recipient enumerator (comma) Bug: 5520692 Bug: 5520787 Change-Id: Iad4a265168d111aa01654a33a9a14f7968fc3181 --- .../com/android/emailcommon/mail/Address.java | 2 +- res/layout/message_view_details.xml | 11 +++++++--- res/layout/message_view_header_actions.xml | 7 ------- res/layout/message_view_subheader.xml | 2 +- res/values/styles.xml | 21 +++++++++++-------- .../emailcommon/mail/AddressUnitTests.java | 2 +- 6 files changed, 23 insertions(+), 22 deletions(-) diff --git a/emailcommon/src/com/android/emailcommon/mail/Address.java b/emailcommon/src/com/android/emailcommon/mail/Address.java index a135d96b1..a2807c916 100644 --- a/emailcommon/src/com/android/emailcommon/mail/Address.java +++ b/emailcommon/src/com/android/emailcommon/mail/Address.java @@ -312,7 +312,7 @@ public class Address { } StringBuffer sb = new StringBuffer(addresses[0].toFriendly()); for (int i = 1; i < addresses.length; i++) { - sb.append(','); + sb.append(", "); sb.append(addresses[i].toFriendly()); } return sb.toString(); diff --git a/res/layout/message_view_details.xml b/res/layout/message_view_details.xml index a7780b60e..ece3c6b4e 100644 --- a/res/layout/message_view_details.xml +++ b/res/layout/message_view_details.xml @@ -19,6 +19,8 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_toLeftOf="@+id/show_details" + android:paddingTop="14dp" + android:paddingBottom="7dp" android:orientation="vertical" android:stretchColumns="2" android:shrinkColumns="2" @@ -52,7 +54,8 @@ /> diff --git a/res/layout/message_view_header_actions.xml b/res/layout/message_view_header_actions.xml index 56a732c00..dd55e8122 100644 --- a/res/layout/message_view_header_actions.xml +++ b/res/layout/message_view_header_actions.xml @@ -34,13 +34,6 @@ android:src="@drawable/ic_reply_all_holo_dark" android:contentDescription="@string/reply_all_action" /> - ?android:attr/textAppearanceSmall - - + + + +