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"