Skip to content

My selectableRoundedImageView occasionally lead to picture displaying 1/4 when i use it with Glide. #21

@THEWEWILLBEBACK

Description

@THEWEWILLBEBACK

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions