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

In ViewPager2 just show loading indicator in some cases #177

Closed rockyoung closed 4 years ago

rockyoung commented 4 years ago

I'm using BIV(1.5.7) in ViewPager2(1.0.0-beta04), if the viewpager2 init with the currentItem which is > 1, than previous page will only show the progress indicator, no mater how user scrolled later, the image will never show up.

Piasy commented 4 years ago

I hope you could do some debug on it, and submit a bugfix PR :)

rockyoung commented 4 years ago

I hope you could do some debug on it, and submit a bugfix PR :)

I've find the solution here https://github.com/Piasy/BigImageViewer/blob/5404ff9db2df4e3941005bc6afc7c78f59ca49b8/app/src/main/java/com/github/piasy/biv/example/RecyclerAdapter.java#L50

Piasy commented 4 years ago

Great then, I'll update README about this.