ImageView imageView = (ImageView) holder.mView.findViewById( R.id.iv_pic ); //默认格式RGB_565使用内存是ARGB_8888的一半,但是图片质量就没那么高了,而且不支持透明度。完整代码如下: Glide.with( mContext ).asBitmap().load( pictureList.get( position ).getImgUrl() ).dontTransform()//这个方法就是取消图片变化效果.format( DecodeFormat.PREFER_ARGB_8888)//设置图片解码格式.placeholder( R.mipmap.pic_default ).into( imageView );
详细解决方案
Glide4.9.0加载网络图片模糊变形,加载大图
热度:54 发布时间:2023-10-18 18:14:46.0
相关解决方案