Collectives™ on Stack Overflow
Find centralized, trusted content and collaborate around the technologies you use most.
Learn more about Collectives
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Learn more about Teams
Ask Question
I was previously using Glide 3.7.0 . Now I've changed the line in Gradle from
implementation 'com.github.bumptech.glide:glide:3.7.0'
implementation 'com.github.bumptech.glide:glide:4.9.0'
After that I synced the Gradle and Rebuilt my project but getting error in building as below-
error: cannot find symbol class GlideDrawableImageViewTarget
IN MY CODE IN WHICH I'M GETTING ERROR, I IMPORTED GLIDE LIKE THIS-
import com.bumptech.glide.Glide;
import com.bumptech.glide.request.target.GlideDrawableImageViewTarget;
I implemented the Glide in the same file as below -
public void showCustomDialog(Activity context) {
dialogView = new Dialog(context);
dialogView.requestWindowFeature(Window.FEATURE_NO_TITLE);
dialogView.setContentView(R.layout.layout_progress_dialog);
iv1 = (ImageView) dialogView.findViewById(R.id.iv1);
GlideDrawableImageViewTarget ivSmily = new GlideDrawableImageViewTarget(iv1);
Glide.with(context).load(R.raw.loader).into(ivSmily);
dialogView.getWindow().setBackgroundDrawable(new ColorDrawable(android.graphics.Color.TRANSPARENT));
dialogView.show();
I think I need to updated these implementation codes in Glide V4, but don't have any idea what codes should I use for Glide V4.
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.