glide 4.9.0设置时提示参数类型不对,你写的是继承相对布局的,glide需要设置ImageView类型的
Opened this issue · 0 comments
shenggaofei commented
//加载网络图片 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);
}
});