My selectableRoundedImageView occasionally lead to picture displaying 1/4 when i use it with Glide.
i use it in my application.
` my code
public void loadNormal(@NonNull SelectableRoundedImageView imageView, @NonNull Object url, int widthDp, int
heightDp, int placeholder) {
RequestOptions requestOptions = new RequestOptions()
.diskCacheStrategy(DiskCacheStrategy.RESOURCE);
if (placeholder != -1) {
requestOptions.placeholder(placeholder).error(placeholder);
}
if (widthDp > 0 && heightDp > 0) {
requestOptions.override(DeviceUtils.dip2px(imageView.getContext(), widthDp),
DeviceUtils.dip2px(imageView.getContext(), heightDp));
} else if (widthDp > 0) {
requestOptions.override(DeviceUtils.dip2px(imageView.getContext(), widthDp));
}
Glide.with(imageView.getContext())
.load(getPath(url, imageView))
.thumbnail(0.6f)
.apply(requestOptions)
.into(imageView);
} `
i have did nothing with it but used glide.