Merge "Style cleanup in email message header to make it more like Gmail" into ics-mr1

This commit is contained in:
Andy Huang 2011-11-02 22:13:24 -07:00 committed by Android (Google) Code Review
commit 56d6f4a6f1
6 changed files with 23 additions and 22 deletions

View File

@ -312,7 +312,7 @@ public class Address {
} }
StringBuffer sb = new StringBuffer(addresses[0].toFriendly()); StringBuffer sb = new StringBuffer(addresses[0].toFriendly());
for (int i = 1; i < addresses.length; i++) { for (int i = 1; i < addresses.length; i++) {
sb.append(','); sb.append(", ");
sb.append(addresses[i].toFriendly()); sb.append(addresses[i].toFriendly());
} }
return sb.toString(); return sb.toString();

View File

@ -19,6 +19,8 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_toLeftOf="@+id/show_details" android:layout_toLeftOf="@+id/show_details"
android:paddingTop="14dp"
android:paddingBottom="7dp"
android:orientation="vertical" android:orientation="vertical"
android:stretchColumns="2" android:stretchColumns="2"
android:shrinkColumns="2" android:shrinkColumns="2"
@ -52,7 +54,8 @@
/> />
<TextView <TextView
android:id="@+id/to" android:id="@+id/to"
style="@style/message_details_value" android:autoLink="email"
style="@style/message_details_value_selectable"
/> />
</TableRow> </TableRow>
<TableRow <TableRow
@ -65,7 +68,8 @@
/> />
<TextView <TextView
android:id="@+id/cc" android:id="@+id/cc"
style="@style/message_details_value" android:autoLink="email"
style="@style/message_details_value_selectable"
/> />
</TableRow> </TableRow>
<TableRow <TableRow
@ -78,7 +82,8 @@
/> />
<TextView <TextView
android:id="@+id/bcc" android:id="@+id/bcc"
style="@style/message_details_value" android:autoLink="email"
style="@style/message_details_value_selectable"
/> />
</TableRow> </TableRow>
</TableLayout> </TableLayout>

View File

@ -34,13 +34,6 @@
android:src="@drawable/ic_reply_all_holo_dark" android:src="@drawable/ic_reply_all_holo_dark"
android:contentDescription="@string/reply_all_action" android:contentDescription="@string/reply_all_action"
/> />
<View
android:id="@+id/more_separator"
android:layout_width="1dip"
android:layout_height="24dip"
android:layout_margin="3dip"
android:background="#ddd"
/>
<ImageButton <ImageButton
android:id="@+id/more" android:id="@+id/more"
style="@android:style/Widget.Holo.ActionButton.Overflow" style="@android:style/Widget.Holo.ActionButton.Overflow"

View File

@ -33,7 +33,7 @@
android:layout_width="0dip" android:layout_width="0dip"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_weight="1"
android:layout_marginLeft="4dip" android:layout_marginLeft="8dip"
android:singleLine="true" android:singleLine="true"
android:ellipsize="end" android:ellipsize="end"
style="@style/message_view_text" style="@style/message_view_text"

View File

@ -81,22 +81,24 @@
<item name="android:textAppearance">?android:attr/textAppearanceSmall</item> <item name="android:textAppearance">?android:attr/textAppearanceSmall</item>
</style> </style>
<style name="message_details_label">
<item name="android:textSize">14dip</item>
<item name="android:textColor">@color/text_secondary_color</item>
<item name="android:textStyle">bold</item>
<item name="android:padding">8dip</item>
<item name="android:singleLine">true</item>
</style>
<style name="message_details_value"> <style name="message_details_value">
<item name="android:textSize">14dip</item> <item name="android:textSize">14dip</item>
<item name="android:textColor">@color/text_secondary_color</item> <item name="android:textColor">@color/text_secondary_color</item>
<item name="android:padding">8dip</item>
<item name="android:singleLine">false</item> <item name="android:singleLine">false</item>
<item name="android:lineSpacingMultiplier">1.5</item>
</style>
<style name="message_details_value_selectable" parent="message_details_value">
<item name="android:textIsSelectable">true</item> <item name="android:textIsSelectable">true</item>
</style> </style>
<style name="message_details_label" parent="message_details_value">
<item name="android:textStyle">bold</item>
<item name="android:singleLine">true</item>
<item name="android:layout_marginRight">8dp</item>
<item name="android:layout_marginLeft">8dp</item>
</style>
<style name="message_view_subject"> <style name="message_view_subject">
<item name="android:textSize">18dip</item> <item name="android:textSize">18dip</item>
<item name="android:textColor">@color/text_primary_color</item> <item name="android:textColor">@color/text_primary_color</item>
@ -230,6 +232,7 @@
<style name="message_header_sender_name"> <style name="message_header_sender_name">
<item name="android:textSize">16dip</item> <item name="android:textSize">16dip</item>
<item name="android:textStyle">bold</item>
<item name="android:textColor">@color/text_primary_color_inverse</item> <item name="android:textColor">@color/text_primary_color_inverse</item>
<item name="android:singleLine">true</item> <item name="android:singleLine">true</item>
<item name="android:ellipsize">end</item> <item name="android:ellipsize">end</item>

View File

@ -548,7 +548,7 @@ public class AddressUnitTests extends AndroidTestCase {
assertEquals(null, Address.toFriendly(list1)); assertEquals(null, Address.toFriendly(list1));
assertEquals(null, Address.toFriendly(list2)); assertEquals(null, Address.toFriendly(list2));
assertEquals("personal1", Address.toFriendly(list3)); assertEquals("personal1", Address.toFriendly(list3));
assertEquals("personal1,address2,address3", Address.toFriendly(list4)); assertEquals("personal1, address2, address3", Address.toFriendly(list4));
} }
/** /**