Skip to content

glide 4.9.0设置时提示参数类型不对,你写的是继承相对布局的,glide需要设置ImageView类型的 #2

Description

@shenggaofei

//加载网络图片 Glide4.9.0

// Glide.with(this).asBitmap().load(url).into(mDragImageView);
Glide.with(this).asBitmap().load(url).into(new BitmapImageViewTarget((ImageView) mDragImageView) {
@OverRide
public void onResourceReady (@nonnull Bitmap resource,
@nullable Transition<? super Bitmap> transition) {
mDragImageView.setImageResource(resource);
}
});

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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