From d7970b3635cecb51512b015fc9c136e337ffc3b0 Mon Sep 17 00:00:00 2001 From: Mark Wei Date: Tue, 2 Apr 2013 14:50:52 -0700 Subject: [PATCH] Attachments in Conversation List: UI changes to display attachment previews in the conversation list. Depends on: PhotoManager: https://googleplex-android-review.googlesource.com/#/c/285814/ Bug: 7481049 Change-Id: Ia9f93c4ce75a4c9be0e9b738d0347292e4b2faca --- res/layout/conversation_item_view_normal.xml | 8 ++ res/layout/conversation_item_view_wide.xml | 139 ++++++++++--------- 2 files changed, 84 insertions(+), 63 deletions(-) diff --git a/res/layout/conversation_item_view_normal.xml b/res/layout/conversation_item_view_normal.xml index 276ab166f..bbe796c13 100644 --- a/res/layout/conversation_item_view_normal.xml +++ b/res/layout/conversation_item_view_normal.xml @@ -99,4 +99,12 @@ style="@style/StarStyle" android:src="@drawable/btn_star_off_normal_email_holo_light" /> + diff --git a/res/layout/conversation_item_view_wide.xml b/res/layout/conversation_item_view_wide.xml index 3cae7f6c6..5a656d2a8 100644 --- a/res/layout/conversation_item_view_wide.xml +++ b/res/layout/conversation_item_view_wide.xml @@ -26,75 +26,88 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:minHeight="64sp" - android:orientation="horizontal"> - - - - + android:orientation="vertical" > - + - + + + + + - + android:orientation="horizontal" + android:layout_gravity="center_vertical"> + + + + - + android:id="@+id/attachment_previews" + android:layout_width="match_parent" + android:layout_height="0dp" + android:layout_marginTop="@dimen/attachment_preview_margin_top" + android:layout_marginLeft="@dimen/attachment_preview_margin_side" + android:layout_marginRight="@dimen/attachment_preview_margin_side" + android:visibility="gone" /> + \ No newline at end of file