Piasy / BigImageViewer

Big image viewer supporting pan and zoom, with very little memory usage and full featured image loading choices. Powered by Subsampling Scale Image View, Fresco, Glide, and Picasso. Even with gif and webp support! 🍻
MIT License
3.98k stars 400 forks source link

在使用共享动画,从recyclerview中跳转到viewpager时候动画就乱了,我想做的类似微信朋友圈的那种效果 #115

Open yuxingxing1988 opened 6 years ago

yuxingxing1988 commented 6 years ago

在使用ActivityOptionsCompat.makeSceneTransitionAnimation 共享动画,从recyclerview中跳转到viewpager(viewpager中的item用的该控件)时候动画就乱了,我想做的类似微信朋友圈的那种效果,但点击RecycleView的item展示大图时动画就乱跳而且在viewpager中图片显示位置也不对

Piasy commented 6 years ago

你准备一个可复现的 demo?

yuxingxing1988 commented 6 years ago

https://github.com/lihangleo2/mPro 就这个 项目把 viewpager里面的item换成BigImageViewer 在动画执行的时候就会出现问题

Piasy commented 6 years ago

好的,有时间之后我看看。不过最近我可能都没时间,要不你先调试看看?

onlymash commented 5 years ago

同样的问题 这是BigImageView,跳转过程中,图片大小不会缩放,所以只显示一部分,非常生硬 screenrecord-2019-02-21-22-54-06_00

这个是photoview非常平滑的过渡 screenrecord-2019-02-21-22-54-39_00

Piasy commented 5 years ago

PR is welcome!

onlymash commented 5 years ago

看了一下,你静态图是用 subsampling-scale-image-view 显示的,能不能在 fragmenlayout 的 onsizechanged 里修改subsampling-scale-image-view的大小?