From 0da770e015f745a051e637302c00e10fc284ab48 Mon Sep 17 00:00:00 2001 From: Margaux Clerc Date: Tue, 10 Nov 2015 17:57:26 +0100 Subject: [PATCH] Add chat edition for deleting chat message fix new conversation --- res/layout/chat.xml | 121 +++++++--------- res/layout/chat_bubble_incoming.xml | 9 +- res/layout/chat_bubble_outgoing.xml | 69 +++++---- src/org/linphone/ChatFragment.java | 213 +++++++++++++++++----------- src/org/linphone/ChatStorage.java | 3 +- src/org/linphone/ui/BubbleChat.java | 26 +++- 6 files changed, 245 insertions(+), 196 deletions(-) diff --git a/res/layout/chat.xml b/res/layout/chat.xml index ebd3bc687..b43ce632c 100644 --- a/res/layout/chat.xml +++ b/res/layout/chat.xml @@ -62,89 +62,71 @@ android:layout_toRightOf="@id/back" android:layout_toLeftOf="@id/start_call" android:paddingLeft="10dp" - android:gravity="center"/> + android:gravity="center_vertical"/> - - - - + + + + - - + + - - - - - - - - - - - + + + + - + + android:text="@string/remote_composing" + android:layout_above="@id/footer"/> - \ No newline at end of file diff --git a/res/layout/chat_bubble_incoming.xml b/res/layout/chat_bubble_incoming.xml index 8870b3fcc..91739a4ec 100644 --- a/res/layout/chat_bubble_incoming.xml +++ b/res/layout/chat_bubble_incoming.xml @@ -108,12 +108,13 @@ android:id="@+id/delete" android:button="@drawable/checkbox" android:contentDescription="@string/content_description_delete" - android:paddingRight="5dp" - android:layout_width="wrap_content" - android:layout_height="wrap_content" + android:layout_marginLeft="5dp" + android:layout_marginRight="5dp" + android:layout_width="30dp" + android:layout_height="30dp" android:adjustViewBounds="true" android:layout_alignParentRight="true" - android:layout_centerVertical="true" android:visibility="gone" /> + \ No newline at end of file diff --git a/res/layout/chat_bubble_outgoing.xml b/res/layout/chat_bubble_outgoing.xml index 13ead5d46..887f19eda 100644 --- a/res/layout/chat_bubble_outgoing.xml +++ b/res/layout/chat_bubble_outgoing.xml @@ -1,13 +1,26 @@ - + + @@ -41,15 +54,6 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" /> - -