Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在列表中使用Glide加载图片特定行出现放大问题 #431

Open
Just4fun2021 opened this issue Dec 23, 2022 · 4 comments
Open

在列表中使用Glide加载图片特定行出现放大问题 #431

Just4fun2021 opened this issue Dec 23, 2022 · 4 comments

Comments

@Just4fun2021
Copy link

1.界面结构是 viewpager2 + fragment + RecyclerView
2.使用自定义单位 mm
3.在显示图片的时候每13行和14行所有内容放大,代码如下 :
如果不使用Glide 显示正常,或者使用Picasso 库也显示正常,请问要如何解决?
@Override protected void convert(BaseViewHolder holder,User item) { Context context = getContext(); try { RoundedImageView riv = holder.getView(R.id.rivFace); // Glide.with(context).asBitmap().load(SdkUtils.safeStr(item.header)) // .error(R.mipmap.im_friend).placeholder(R.mipmap.im_friend).into(riv); Picasso.get().load(SdkUtils.safeStr(item.header)).into(riv); }catch (Throwable e) { e.printStackTrace(); } holder.setText(R.id.tvName, item.name); }

@IdyllicFish
Copy link

我用的Coil加载图片, viewpager2 + fragment + RecyclerView下也出现了这个问题

@Hisagod
Copy link

Hisagod commented Feb 16, 2023

排查了全部依赖,发现这个库导致Coil加载不全

@smilehyb
Copy link

x请问现在怎么解决?

@ysj40540
Copy link

ysj40540 commented Jul 8, 2024

Snipaste_2024-07-08_18-06-49 试试

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants