glide icon indicating copy to clipboard operation
glide copied to clipboard

Centercrop is unable to display complete.

Open Deaful opened this issue 1 year ago • 2 comments

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

glide加载本地视频显示不全

Thanks~

Deaful avatar Apr 20 '23 10:04 Deaful

I had the same problem ~

esligh avatar Mar 12 '24 08:03 esligh

我在Android 11 上也遇到同样的情况,随机发生,我加载的src是一个bitmap Glide.with(context).load(src).apply( RequestOptions().placeholder(placeholderRes).error(errorRes).transform( MultiTransformation( CenterCrop(), RoundedCorners(roundCorner.toInt()) ) ) ).into(this)

Zander2014 avatar Sep 13 '24 07:09 Zander2014