From 1a281d8354622a3606360f9f9a7fe4bb7d6a2c3a Mon Sep 17 00:00:00 2001 From: cloudroam <cloudroam> Date: 星期日, 27 四月 2025 13:22:26 +0800 Subject: [PATCH] fix 短信 --- app/src/main/java/com/example/firstapp/ui/vip/MemberInfoCardFragment.kt | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/app/src/main/java/com/example/firstapp/ui/vip/MemberInfoCardFragment.kt b/app/src/main/java/com/example/firstapp/ui/vip/MemberInfoCardFragment.kt index 405783d..2166148 100644 --- a/app/src/main/java/com/example/firstapp/ui/vip/MemberInfoCardFragment.kt +++ b/app/src/main/java/com/example/firstapp/ui/vip/MemberInfoCardFragment.kt @@ -53,6 +53,7 @@ Glide.with(this) .load(viewModel.cover) + .circleCrop() .transform(RoundedCorners(100)) // 设置圆角 // .error(R.drawable.error_placeholder) // 如果加载失败,显示占位图 .error(R.mipmap.avatar_default) @@ -118,6 +119,7 @@ viewModel.cover.collect { coverUrl -> Glide.with(this@MemberInfoCardFragment) .load(coverUrl) + .circleCrop() .transform(RoundedCorners(100)) .error(R.drawable.error_placeholder) .into(binding.memberAvatarView) @@ -132,6 +134,7 @@ .transform(RoundedCorners(100)) .error(R.drawable.error_placeholder) .into(binding.memberImageView) + } } -- Gitblit v1.9.3