recyclerlistview icon indicating copy to clipboard operation
recyclerlistview copied to clipboard

fix onItemLayout

Open tomasmozeris opened this issue 3 years ago • 5 comments

Make onItemLayout work without forceNonDeterministicRendering

tomasmozeris avatar Jun 01 '22 12:06 tomasmozeris

@naqvitalha check this

Derewith avatar Jun 10 '22 13:06 Derewith

Any updates on the matter? My project would benefit greatly from this fix!

TheFrostage avatar Jun 15 '22 08:06 TheFrostage

@TheFrostage you could use this package https://github.com/ds300/patch-package and patch till fix will be included

tomasmozeris avatar Jun 15 '22 09:06 tomasmozeris

What is the value add here? In case of fixed dimensions don't we know the layout already? I'm curious to understand how this is being used.

naqvitalha avatar Jun 15 '22 10:06 naqvitalha

I'm using it to show placeholders in list till onItemLayout is fired.

if it is unwanted change we could improve readme, that it works only with forceNonDeterministicRendering, currently it states: A callback function that is executed when an item of the recyclerListView (at an index) has been layout. This can also be used as a proxy to itemsRendered kind of callbacks.

tomasmozeris avatar Jun 15 '22 10:06 tomasmozeris