毕加索图书馆:Fit() 函数是否调整图像大小?
Picasso Library: Does Fit() function resize the image?
我目前正在使用 Picasso 将图像文件加载到 android 上的图像视图。我尝试调整图像大小,然后使用 fit 来适应 imageView。适合不能与调整大小一起使用。
Picasso.With().Load().Resize().Fit().Into()
拟合函数是否会调整图像大小。
来自毕加索的Document
Attempt to resize the image to fit exactly into the target ImageView's
bounds. This will result in delayed execution of the request until the
ImageView has been laid out.
所以我认为 fit 函数会调整图像的大小。
我目前正在使用 Picasso 将图像文件加载到 android 上的图像视图。我尝试调整图像大小,然后使用 fit 来适应 imageView。适合不能与调整大小一起使用。
Picasso.With().Load().Resize().Fit().Into()
拟合函数是否会调整图像大小。
来自毕加索的Document
Attempt to resize the image to fit exactly into the target ImageView's bounds. This will result in delayed execution of the request until the ImageView has been laid out.
所以我认为 fit 函数会调整图像的大小。