From 9a6dc56b42898f29dc7bb4ba3b38c8bd37b62727 Mon Sep 17 00:00:00 2001 From: Sylvain Berfini Date: Thu, 9 Jun 2022 17:44:03 +0200 Subject: [PATCH] Reworked chat_room_list_cell layout using ConstraintLayout to speed up display time --- .../main/res/layout/chat_room_list_cell.xml | 318 +++++++++--------- 1 file changed, 164 insertions(+), 154 deletions(-) diff --git a/app/src/main/res/layout/chat_room_list_cell.xml b/app/src/main/res/layout/chat_room_list_cell.xml index e6e8964fe..ed4e675b2 100644 --- a/app/src/main/res/layout/chat_room_list_cell.xml +++ b/app/src/main/res/layout/chat_room_list_cell.xml @@ -1,20 +1,21 @@ - + - + + type="android.view.View.OnClickListener" /> + type="android.view.View.OnLongClickListener" /> + type="Integer" /> + type="Boolean" /> @@ -23,162 +24,171 @@ type="org.linphone.activities.main.viewmodels.ListTopBarViewModel" /> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + android:paddingLeft="5dp" + android:paddingTop="5dp" + android:paddingRight="5dp"> + + + + + + + + + + + + + + + + + + + android:padding="10dp" + android:src="@drawable/forward_message_default" + android:visibility="@{forwardPending ? View.VISIBLE : View.GONE, default=gone}" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintTop_toTopOf="parent" /> - + - + + + + + + + \ No newline at end of file