I have a problem when using FlexlayoutManager in Recyclerview
I have a list of image with size 300 items
The size of the image is different
Everything was fine when I scrolled to 100 items but the problem occurred when I scrolled to about 200 items. Appear warning ARN and Drop frame terrible
Issues and steps to reproduce
This is the code to display the item
val lp = rlLayout.layoutParams
lp.width = item.width
lp.height = item.height
if (lp is FlexboxLayoutManager.LayoutParams) {
lp.flexGrow = 1f
}
glide
.load(item.url_w)
.diskCacheStrategy(DiskCacheStrategy.ALL)
.transition(DrawableTransitionOptions.withCrossFade(200))
.error(context.resources.getDrawable(R.drawable.ic_error, null))
.centerCrop()
.into(imgItem)
I have a problem when using FlexlayoutManager in Recyclerview
Issues and steps to reproduce
This is the code to display the item
This is code XML
Contact with me
I hope you maybe contact with me via Skype : nvd3012 or email nvd3012@gmail.com so I can send you the source code.
Version of the flexbox library
2.0.1
Thank for your time