From 3c899768d719b5ab1ce9275a9145b48954549dad Mon Sep 17 00:00:00 2001 From: kaixed Date: Thu, 12 Dec 2024 16:21:23 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=81=8A=E5=A4=A9?= =?UTF-8?q?=E7=95=8C=E9=9D=A2=E8=87=AA=E5=B7=B1=E5=8F=91=E9=80=81=E5=9B=BE?= =?UTF-8?q?=E7=89=87=E6=A0=BC=E5=BC=8F=E6=B6=88=E6=81=AF=E6=97=B6=E5=A4=B4?= =?UTF-8?q?=E5=83=8F=E9=94=99=E4=BD=8D=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/com/kaixed/kchat/ui/adapter/ChatAdapter.kt | 1 + app/src/main/res/layout/chat_recycle_item_image_normal.xml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/kaixed/kchat/ui/adapter/ChatAdapter.kt b/app/src/main/java/com/kaixed/kchat/ui/adapter/ChatAdapter.kt index d0189d5..9103fdc 100644 --- a/app/src/main/java/com/kaixed/kchat/ui/adapter/ChatAdapter.kt +++ b/app/src/main/java/com/kaixed/kchat/ui/adapter/ChatAdapter.kt @@ -186,6 +186,7 @@ class ChatAdapter( if (sender) ConstantsUtil.getAvatarUrl() else message.avatarUrl Glide.with(binding.root.context).load(avatarUrl) .into(if (sender) binding.ifvAvatarMine else binding.ifvAvatar) + setViewVisibility( parentView = binding.root, sender = sender, diff --git a/app/src/main/res/layout/chat_recycle_item_image_normal.xml b/app/src/main/res/layout/chat_recycle_item_image_normal.xml index ad079bc..d50bd64 100644 --- a/app/src/main/res/layout/chat_recycle_item_image_normal.xml +++ b/app/src/main/res/layout/chat_recycle_item_image_normal.xml @@ -41,7 +41,7 @@ android:layout_width="35dp" android:layout_height="35dp" android:layout_marginVertical="20dp" - android:layout_marginStart="10dp" + android:layout_marginEnd="10dp" app:layout_constraintEnd_toEndOf="parent" android:src="@drawable/ic_avatar" app:layout_constraintTop_toBottomOf="@id/tv_timer"