glide
glide copied to clipboard
Centercrop is unable to display complete.
Glide Version:4.12.0
Integration libraries:rxjava:2.2.5
Device/Android Version:Android11
Issue details / Repro steps / Use case background:
Glide load line / GlideModule
(if any) / list Adapter code (if any):
Glide.with...
RoundedCorners roundedCorners= new RoundedCorners(NavigationUtil.dip2px(context, 24));
RequestOptions options= new RequestOptions().transform(new CenterCrop(), roundedCorners);
Glide.with(context)
.load(new File(filePath)
.apply(options)
.into(iv_pic);
Layout XML:
<FrameLayout xmlns:android="...
<ImageView android:id="@+id/iv_pic" android:layout_width="match_parent" android:layout_height="match_parent" />
Stack trace / LogCat:
paste stack trace and/or log here
Thanks~
I had the same problem ~
我在Android 11 上也遇到同样的情况,随机发生,我加载的src是一个bitmap
Glide.with(context).load(src).apply( RequestOptions().placeholder(placeholderRes).error(errorRes).transform( MultiTransformation( CenterCrop(), RoundedCorners(roundCorner.toInt()) ) ) ).into(this)