Deprecated .crossFade () on Android 4 Glide

1

I have updated from Glide 3.8.0 to Glide 4.1.1 and I find that part of the code has been compatible

I followed the installation of Started Glide 4

compile 'com.github.bumptech.glide:glide:4.1.1'
annotationProcessor 'com.github.bumptech.glide:compiler:4.1.1'

Added MyAppGlideModule.java

and use GlideApp but I find that .crossfade() has disappeared

    
asked by Webserveis 28.10.2017 в 21:58
source

1 answer

1

The new way to add the effect of cross fade or crossfade in English is as follows:

import

import static com.bumptech.glide.load.resource.drawable.DrawableTransitionOptions.withCrossFade;

Then we apply it in the following way:

Glide.with(getApplicationContext())
  .load(url)
  .transition(withCrossFade())
  .into(imageView);

as indicated here Cross Fades Glide V4

    
answered by 05.08.2018 / 22:20
source