glide icon indicating copy to clipboard operation
glide copied to clipboard

RecyclerView inside a BottomSheet flickers after image load

Open sOt0nGx opened this issue 8 years ago • 3 comments

We are using RecyclerView inside a BottomSheet. Whenever we scroll the RecyclerView for the first time, the loading of images will cause the BottomSheet to flicker or drop in height.

We have called Glide.with(mContext).load(obj.getImageUrl()).preload(80,60); for all the images before assigning the adapter.

We use this code in the RecyclerView Adapter Glide.with(mContext) .load(obj.getImageUrl()).into(imageView); We have tried this in version 3.7.0.

We have also tried GlideApp.with(mContext).load(obj.getImageUrl()).onlyRetrieveFromCache(true) in version 4.7.1 and the issue persists.

Please advise

sOt0nGx avatar Jul 19 '18 03:07 sOt0nGx

This issue has been automatically marked as stale because it has not had activity in the last seven days. It will be closed if no further activity occurs within the next seven days. Thank you for your contributions.

stale[bot] avatar Jul 26 '18 04:07 stale[bot]

http://bumptech.github.io/glide/doc/debugging.html#unexpected-cache-misses

sjudd avatar Aug 09 '18 15:08 sjudd

@sOt0nGx I am having the same issue. Did you manage to solve this one?

efthymios1991 avatar Nov 19 '20 14:11 efthymios1991