Picasso加载图片oom、拉伸变形

oom:试试.resize(width,height)  .memoryPolicy(NO_CACHE, NO_STORE)

拉伸变形:试试.resize(width,height)   .centerCrop()

总结:这样用是没问题的

Picasso.with(mContext)
                    .load("file://" + path)
                    .resize(720, 720)
                    .centerCrop()
                    .memoryPolicy(NO_CACHE, NO_STORE)
                    .into(holder.mIvThumbnail);

猜你喜欢

转载自blog.csdn.net/qwildwolf/article/details/97235192