From 4aeef970bbe0cec459d194171f3d5e61222f6f4f Mon Sep 17 00:00:00 2001 From: Sylvain Berfini Date: Wed, 20 Apr 2022 13:22:47 +0200 Subject: [PATCH] Removed now useless RelativeLayout for chat message bubble --- app/build.gradle | 1 + .../res/layout/chat_message_list_cell.xml | 353 +++++++++--------- 2 files changed, 174 insertions(+), 180 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index e1f253108..55b2ccd8a 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -222,6 +222,7 @@ dependencies { implementation "androidx.security:security-crypto-ktx:1.1.0-alpha03" implementation 'androidx.core:core-splashscreen:1.0.0-beta02' + // https://github.com/material-components/material-components-android/blob/master/LICENSE Apache v2.0 implementation 'com.google.android.material:material:1.5.0' // https://github.com/google/flexbox-layout/blob/main/LICENSE Apache v2.0 implementation 'com.google.android.flexbox:flexbox:3.0.0' 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 e9332a491..1b56d7b21 100644 --- a/app/src/main/res/layout/chat_message_list_cell.xml +++ b/app/src/main/res/layout/chat_message_list_cell.xml @@ -4,12 +4,12 @@ xmlns:tools="http://schemas.android.com/tools"> - - - + + + + type="android.view.View.OnLongClickListener" /> @@ -18,7 +18,7 @@ type="android.view.View.OnClickListener" /> + type="Integer" /> @@ -28,195 +28,188 @@ + android:layout_height="wrap_content" + android:onClick="@{clickListener}"> - - + - + + - - + - + - - - - - - - - - - - - - - - - - + + android:visibility="@{data.chatMessage.forward ? View.VISIBLE : View.GONE, default=gone}" + app:drawableLeftCompat="@drawable/icon_forwarded_message" + tools:ignore="SmallSp" /> - + - + + + + + + + + + + + + +