diff --git a/app/src/main/res/layout/chat_message_list_cell.xml b/app/src/main/res/layout/chat_message_list_cell.xml index 74bbd7a82..5cffeb790 100644 --- a/app/src/main/res/layout/chat_message_list_cell.xml +++ b/app/src/main/res/layout/chat_message_list_cell.xml @@ -29,181 +29,189 @@ android:layout_width="match_parent" android:layout_height="wrap_content"> - + + - - + - + + - + - + - - - - - - - - - - + android:orientation="vertical" + android:layout_toLeftOf="@{viewModel.chatMessage.outgoing || selectionListViewModel.isEditionEnabled ? @id/imdn : 0}" + android:layout_toRightOf="@id/avatar" + android:layout_below="@id/time" + android:layout_marginBottom="1dp" + android:layout_marginRight="3dp" + android:layout_marginLeft="@{selectionListViewModel.isEditionEnabled ? @dimen/edit_chat_message_bubble_left_margin : !viewModel.chatMessage.outgoing ? @dimen/incoming_chat_message_bubble_left_margin : @dimen/outgoing_chat_message_bubble_left_margin}" + android:paddingTop="5dp" + android:paddingBottom="5dp"> - - - + + + + + + + + + + + android:lineSpacingExtra="-1.7sp"/> - + android:layout_height="wrap_content" + android:orientation="horizontal" + android:layout_gravity="right" + android:gravity="center_vertical|right" + android:layout_marginRight="5dp" + android:layout_marginLeft="5dp"> + + + + + + - + - + - +