转载声明:本文来自 https://blog.csdn.net/shijianduan1/article/details/86675168
问题:
在Glide 3.X的时候可以使用以下代码
Glide.with(context)
.load(url)
.animate(animId)
.into(imageView);
但是Glide 4.0+的时候 animate() 方法已经被取消
分析:
很简单,直接google,然后get 答案。。。。。 (所以有条件的小伙伴,直接google,不要百度)
Glide — Custom Animations with animate()
结论:
你看 是不是很简单。。。。
GlideApp
.with(context)
.load(eatFoodyImages[0])
.transition(GenericTransitionOptions.with(R.anim.zoom_in))
.into(imageView1);