Picasso内存问题
刚使用Picasso时,发现有点卡卡的,查看了一下Memory,直接疯长到了几十兆,看了一下官网
Transform images to better fit into layouts and to reduce memory size.意思大概就是可以通过设置图片的大小来适应布局与减少内存.
OK,那么问题解决了。
Picasso.with(context) .load(url) .resize(50, 50)//节约内存 .centerCrop() .into(imageView)
相关推荐
xuanzhiqiang 2019-12-11
楚人无梦 2019-07-01
BannerFang 2019-07-01
thomas0yang 2019-06-26
zYounggg 2019-06-21
BannerFang 2017-03-27
jimbo 2016-11-30
jimbo 2016-10-04
楚人无梦 2016-08-01
SnailDream 2016-03-21
zYounggg 2014-12-06
BannerFang 2013-12-13
xuanzhiqiang 2018-07-03
诗蕊 2017-05-20
tufeizhang 2019-01-02
wuawua 2019-02-25
TTHHVV 2016-10-28
西木 2016-10-28