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());
for (int i = 1; i < addresses.length; i++) {
sb.append(',');
sb.append(", ");
sb.append(addresses[i].toFriendly());
}
return sb.toString();

View File

@ -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 @@
/>
<TextView
android:id="@+id/to"
style="@style/message_details_value"
android:autoLink="email"
style="@style/message_details_value_selectable"
/>
</TableRow>
<TableRow
@ -65,7 +68,8 @@
/>
<TextView
android:id="@+id/cc"
style="@style/message_details_value"
android:autoLink="email"
style="@style/message_details_value_selectable"
/>
</TableRow>
<TableRow
@ -78,7 +82,8 @@
/>
<TextView
android:id="@+id/bcc"
style="@style/message_details_value"
android:autoLink="email"
style="@style/message_details_value_selectable"
/>
</TableRow>
</TableLayout>

View File

@ -34,13 +34,6 @@
android:src="@drawable/ic_reply_all_holo_dark"
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
android:id="@+id/more"
style="@android:style/Widget.Holo.ActionButton.Overflow"

View File

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

View File

@ -81,22 +81,24 @@
<item name="android:textAppearance">?android:attr/textAppearanceSmall</item>
</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">
<item name="android:textSize">14dip</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:lineSpacingMultiplier">1.5</item>
</style>
<style name="message_details_value_selectable" parent="message_details_value">
<item name="android:textIsSelectable">true</item>
</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">
<item name="android:textSize">18dip</item>
<item name="android:textColor">@color/text_primary_color</item>
@ -230,6 +232,7 @@
<style name="message_header_sender_name">
<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:singleLine">true</item>
<item name="android:ellipsize">end</item>