JessYanCoding / JessYanCoding/AndroidAutoSize
在列表中使用Glide加载图片特定行出现放大问题
- 主要語言
- Java
- 星號
- 13.7k
- 分支
- 2k
- PR 合併指標
- 30 天內沒有已合併 PR
描述
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);
}`
貢獻指南
這個儲存庫沒有索引到貢獻指南
研究方向
Start with the adapter's convert method and reproduce the issue in the ViewPager2, Fragment, and RecyclerView setup described in the report. Compare the Glide and Picasso image-binding paths while checking the custom mm unit handling; done means rows 13 and 14 no longer enlarge when images load.
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- android, java
- 領域
- mobile
- Issue 類型
- 缺陷
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 35/100