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

列表图片加载内存一直增加 #15

Open
pj567 opened this issue Jun 23, 2020 · 0 comments
Open

列表图片加载内存一直增加 #15

pj567 opened this issue Jun 23, 2020 · 0 comments

Comments

@pj567
Copy link

pj567 commented Jun 23, 2020

@BindingAdapter使用,在列表中会存在内存一直增加,大佬这个是什么原因造成的呢,是不是因为@BindingAdapter对应的方法是静态的导致的。
@BindingAdapter("imageUrl")
public static void loadImage(ImageView imageView, String url) {
if (!TextUtils.isEmpty(url)) {
Glide.with(imageView.getContext())
.load(url)
.apply(RequestOptions.bitmapTransform(new RoundedCorners(40)))
.into(imageView);
}
}

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

1 participant