[英]Images are not loading in full image view using Glide
在 ImageView XML 代码中使用android:scaleType="centerCrop"
。
请试试这个:
RequestOptions options = new RequestOptions();
options.centerCrop();
Glide.with(context).load(model.getBannerImage()).apply(options).into(offerImage);
您也可以在 xml (ImageView) 中设置:
android:scaleType="centerCrop"
在RequestOptions
使用centerCrop
RequestOptions options = new RequestOptions();
options.centerCrop();
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.