How to set default cross fade animation for Glide V4

This works for me:

Glide.with(context).load(image).transition(DrawableTransitionOptions.withCrossFade()).into(view);


You can use this way, it is simple you can also add duration to your transition

 Uri image= Uri.parse(url_of_the_image);
 Glide.with(context)
      .load(image)
      .transition(DrawableTransitionOptions.withCrossFade(duration_in_ms)) 
      .into(imageView);`



  

I did it with this code:

builder.setDefaultTransitionOptions(Drawable.class, DrawableTransitionOptions.withCrossFade());