-
Notifications
You must be signed in to change notification settings - Fork 405
Wrong image on recyclerview #107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I've managed this by doing the following:
Adapter override fun onViewRecycled(holder: GlideGalleryViewHolder) {
holder.clear()
} ViewHolder fun clear() {
itemView.itemImage.ssiv.recycle()
} But I don't know if it's a good practice or it's ok. Could you please give me your opinion? Thanks! |
I think that's a good way to solve this problem. |
@SmasSive I think calling |
Did anyone managed to recycle() a ssiv in RecyclerView with ViewPager successfully? Calling |
I was managed to make it work by hiding a |
Hi!
First of all thanks for this great lib! 👍
I'm using BIV like a gallery, in a recyclerview with a viewpager behaviour and the viewholder is basically a
BigImageView
, the question is that when I'm paginating there is a page that shows a previous image while progress is shown and once the right image is ready, it is shown correctly.What I expect is that while the image is downloading, no previous image is shown but only the progress.
I've tried to do a
cancel()
in theonViewRecycled
method of the adapter but with no success... I've read also that another solution could be to do asetImageDrawable(null)
but AFAIK I don't have access to theImageView
right?What can I do? If you need more info please ask me!
Thanks a lot!!!
The text was updated successfully, but these errors were encountered: