Android —— Glide问题记录

  3.X升级4.X

    //glide
//    implementation 'com.github.bumptech.glide:glide:3.6.1'

    implementation 'com.github.bumptech.glide:glide:4.11.0'
    annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0'

升级之后GlideDrawable()找不到,直接替换为Drawable就行

替换之后报错 

更换为  

// Glide.with(context).load(imageRes).crossFade().into(view);
 Glide.with(context).load(imageRes).transition(withCrossFade()).into(view);

更换为:

//            Glide.clear(holder.schedule_image);
//          Glide.with(holder.getImageView().getContext()).clear(holder.getImageView());
            Glide.with(holder.schedule_image.getContext()).clear(holder.schedule_image);

猜你喜欢

转载自blog.csdn.net/LoveShadowing/article/details/109597385