From 4f902d8210d50a586c7ece1bb7da2ab26fd18da5 Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Mon, 27 Jan 2014 20:40:42 +0100 Subject: conversation archiveable. new conversation will find or restart old conversations --- res/layout/conversation_list_row.xml | 5 ++-- res/layout/fragment_conversation.xml | 4 ++- res/layout/message_recieved.xml | 52 ++++++++++++++++++++++++++++++++++++ res/layout/message_sent.xml | 3 +-- res/menu/conversations.xml | 2 +- 5 files changed, 59 insertions(+), 7 deletions(-) create mode 100644 res/layout/message_recieved.xml (limited to 'res') diff --git a/res/layout/conversation_list_row.xml b/res/layout/conversation_list_row.xml index 303fdd1d..41747240 100644 --- a/res/layout/conversation_list_row.xml +++ b/res/layout/conversation_list_row.xml @@ -22,7 +22,6 @@ android:id="@+id/conversation_name" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:text="Mein Contact" android:textColor="#636363" android:textSize="20sp" android:typeface="sans" /> @@ -34,7 +33,8 @@ android:layout_below="@id/conversation_name" android:textColor="#636363" android:textSize="14sp" - android:text="This is my last message" + android:singleLine="true" + android:scrollHorizontally="false" android:paddingTop="3dp"/> diff --git a/res/layout/fragment_conversation.xml b/res/layout/fragment_conversation.xml index 11859573..3b965af2 100644 --- a/res/layout/fragment_conversation.xml +++ b/res/layout/fragment_conversation.xml @@ -49,7 +49,9 @@ android:background="#e5e5e5" tools:listitem="@layout/message_sent" android:divider="@null" - android:dividerHeight="0dp"> + android:dividerHeight="0dp" + android:transcriptMode="alwaysScroll" + android:listSelector="@android:color/transparent"> \ No newline at end of file diff --git a/res/layout/message_recieved.xml b/res/layout/message_recieved.xml new file mode 100644 index 00000000..bde702ae --- /dev/null +++ b/res/layout/message_recieved.xml @@ -0,0 +1,52 @@ + + + + + + + + + + + + + + diff --git a/res/layout/message_sent.xml b/res/layout/message_sent.xml index c690c217..c3136a55 100644 --- a/res/layout/message_sent.xml +++ b/res/layout/message_sent.xml @@ -10,12 +10,11 @@ android:layout_height="wrap_content" android:background="@drawable/message_border" android:layout_toLeftOf="@+id/message_photo" - android:layout_alignParentLeft="true" android:layout_alignParentBottom="true" android:minHeight="48dp" > + android:title="@string/action_archive"/>