fix: 修复聊天界面自己发送图片格式消息时头像错位问题
This commit is contained in:
parent
c5b0cde2bd
commit
3c899768d7
@ -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,
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user