全局图标优化
This commit is contained in:
@@ -49,7 +49,7 @@ class PersonalFragment : Fragment() {
|
||||
.titleBar(binding.headerLayout)
|
||||
.init()
|
||||
Glide.with(this)
|
||||
.load(R.drawable.img)
|
||||
.load(R.mipmap.img)
|
||||
.circleCrop()
|
||||
.into(binding.ivAvatar)
|
||||
binding.headerLayout.setOnClickListener {
|
||||
@@ -243,8 +243,8 @@ class PersonalFragment : Fragment() {
|
||||
}
|
||||
userInfo.avatar?.let {
|
||||
val requestOptions = RequestOptions()
|
||||
.placeholder(R.drawable.img) // 加载中显示
|
||||
.error(R.drawable.img) // 失败时显示
|
||||
.placeholder(R.mipmap.img) // 加载中显示
|
||||
.error(R.mipmap.img) // 失败时显示
|
||||
|
||||
Glide.with(this)
|
||||
.load(it) // 如果 avatar 为 null,Glide 会直接回调 error
|
||||
|
||||
Reference in New Issue
Block a user