We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
@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); } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
@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);
}
}
The text was updated successfully, but these errors were encountered: