Android 这会浪费毕加索的记忆吗?

Android 这会浪费毕加索的记忆吗?,android,picasso,Android,Picasso,我正在做以下工作 int dimPx= (int)CommonFunc.convertDpToPixel(100, mCon); imageView = new ImageView(mCon); imageView.setLayoutParams(new LayoutParams(dimPx,dimPx)); imageView.setScaleType(ImageView.ScaleType.FIT_XY); Picasso.with(mCon).load(new File(filePathT

我正在做以下工作

int dimPx= (int)CommonFunc.convertDpToPixel(100, mCon);
imageView = new ImageView(mCon);
imageView.setLayoutParams(new LayoutParams(dimPx,dimPx));
imageView.setScaleType(ImageView.ScaleType.FIT_XY);
Picasso.with(mCon).load(new File(filePathToImg).into(imageView);
这对记忆有影响吗?我唯一的怀疑是我用scaleType来表示FITXY,我用毕加索来加载图像。它基本上是将整个图像加载到内存中,还是毕加索足够聪明,可以将其调整为imageview并存储大小的图像

我试图移除FitXY并使用Picasso.fit(),但没有得到想要的结果。我希望将图像(从设备上的本地文件加载)的大小缩小,以填充imageview“忽略”纵横比

让我知道,如果我是这样做的工作方式,并导致巨大的记忆损失
谢谢

没有回答?没有回答?