From a836e839b334a7ecbbf44a1730846a7be4cba23a Mon Sep 17 00:00:00 2001 From: Margaux Clerc Date: Fri, 20 Nov 2015 16:49:14 +0100 Subject: [PATCH] Update the chat view --- res/drawable-xhdpi/resizable_textfield.9.png | Bin 366 -> 223 bytes res/layout/chat.xml | 115 ++--- res/layout/chat_bubble_incoming.xml | 160 +++--- res/layout/chat_bubble_outgoing.xml | 25 +- res/layout/search_contact_cell.xml | 18 +- res/values/styles.xml | 6 +- src/org/linphone/ChatFragment.java | 483 +++++++------------ src/org/linphone/LinphoneManager.java | 7 +- src/org/linphone/ui/BubbleChat.java | 21 +- 9 files changed, 345 insertions(+), 490 deletions(-) diff --git a/res/drawable-xhdpi/resizable_textfield.9.png b/res/drawable-xhdpi/resizable_textfield.9.png index 0b657db887b19410ad5460c23f91d0ba91663f33..51ad75cf4f31940a9af089ecde7f16b03195d942 100644 GIT binary patch delta 196 zcmaFIbf0m8ay<>&kwg zTbN&tJBU9g04S8>>Eaj?aro^GL#_i394>*r_TTMSup5Lrt=iyyXx*XtQ6Cx;4D;T5 zMhnZ!b##QTSn2UeI!g5C5xHwB4vkE#TwknBq-`xGUuI_I643})02V6|z9Mar`MH6K qHA+frrOuB{XYGFP=id78ue!D~&*FK#%9DT=GkCiCxvXSiicELap=+HhKUBPoN+P zD2SDvii)X{VzMJyi3lO2c<$rPz`xlQ=ErpFD9Y~z7s}s@G4`PA`kP@GAVV}wdsS8S zeuuOy>xo~y;|H$mLYk&fRTZ>td(o6-x%PG(XT|ctEgbu}L4P^2!HXaWV45aamgUr- z0WIH?Z8j(#c%BFIJfDsfL5uJED|QFX^IRIFNS0+sXy5nJLA$OyLS;jW5R{dzz2E^WR91A2c#?+sSkvl%s7qL1)ux;C? m1bYhyH$9_G`A40$2>Sy6EL~Y{1qzh_0000 + android:layout_height="60dp"> @@ -26,7 +24,7 @@ android:src="@drawable/edit_list_button" android:background="@drawable/toolbar_button" android:contentDescription="@string/content_description_edit" - android:layout_width="70dp" + android:layout_width="60dp" android:layout_height="match_parent" android:layout_alignParentRight="true" android:padding="15dp"/> @@ -37,7 +35,7 @@ android:background="@drawable/toolbar_button" android:contentDescription="@string/content_description_call" android:layout_toLeftOf="@id/edit" - android:layout_width="70dp" + android:layout_width="60dp" android:layout_height="match_parent" android:padding="15dp"/> @@ -45,9 +43,8 @@ android:id="@+id/back_to_call" android:src="@drawable/call_back" android:background="@drawable/toolbar_button" - android:contentDescription="@string/content_description_call" android:layout_toLeftOf="@id/edit" - android:layout_width="70dp" + android:layout_width="60dp" android:layout_height="match_parent" android:visibility="gone" android:padding="15dp"/> @@ -61,100 +58,92 @@ android:layout_height="match_parent" android:layout_toRightOf="@id/back" android:layout_toLeftOf="@id/start_call" - android:paddingLeft="10dp" - android:gravity="center_vertical"/> + android:gravity="center_vertical" + android:paddingLeft="5dp"/> + android:layout_alignParentBottom="true"> - - - + android:layout_height="wrap_content" /> + android:layout_gravity="center_vertical"/> - + + - + \ No newline at end of file diff --git a/res/layout/chat_bubble_incoming.xml b/res/layout/chat_bubble_incoming.xml index edcc08feb..b4cabbd4f 100644 --- a/res/layout/chat_bubble_incoming.xml +++ b/res/layout/chat_bubble_incoming.xml @@ -4,106 +4,94 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="left" - android:orientation="horizontal" > + android:orientation="horizontal"> - - - - - - - - - - - - - - - - - - + -