Commit 8d6b8801 by 段启岩

修改用户头像加载的图片为圆形

parent 320a620c
......@@ -68,8 +68,8 @@ public class MyFragment extends BaseFragment<MyFragmentViewModel, FragmentMyBind
String userAvatar = authenticationViewModel.getUserInfo().getUserAvatar();
RequestOptions glideRequestOptions = new RequestOptions()
.centerCrop()
.placeholder(R.drawable.placeholder_rectangle)
.error(R.drawable.placeholder_rectangle)
.placeholder(R.drawable.placeholder_circle)
.error(R.drawable.placeholder_circle)
.priority(Priority.HIGH)
.diskCacheStrategy(DiskCacheStrategy.AUTOMATIC)
.transform(new GlideRoundTransform(26));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment