如何使用picasso调整ImageView占位符的大小

Kat*_*lon 9 android imageview picasso

毕加索允许我调整图像大小.是否有调整占位符大小的机制?以下是不够的.我错过了什么?

Picasso.with(mContext).load(url).placeholder(R.drawable.imageview_holder).resize(200, 200).into(imageview);
Run Code Online (Sandbox Code Playgroud)

Nig*_*Dev 5

我发现对我有用的是直接使用android:scaleType="fitCenter"XML 中的 ImageView 调整占位符(和错误图像)的大小。然后我仍然可以使用毕加索来调整下载图像的大小和居中。