java - Glide加载头像,会出现椭圆的情况
ringa_lee
ringa_lee 2017-04-18 09:44:22
0
0
436

如图,在线客服的小头像用Glide加载,但是在首次进入这个界面会出现椭圆的情况,上下滑动之后就会变成正常的圆形,代码如下:

Glide.with( .load("http://f.hiphotos.baidu.com/baike/w%3D268%3Bg%3D0/sign=30a6e8f2f5deb48ffb69a6d8c8245d14/9f2f070828381f302478ff3aaf014c086f06f0c4.jpg") .placeholder(R.drawable.default_picture) .bitmapTransform(new CropCircleTransformation(Glide.get(context).getBitmapPool())) .error(R.drawable.me_focused) .crossFade() .into(h.iv_head_left);
ringa_lee
ringa_lee

ringa_lee

reply all (0)
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!