Chris Johnson
09/02/2021, 7:03 PMLayout
for measurement of the child and then another Layout
that will place X amount of those children based on screen height. The problem I ran into was each child I'm placing needs to be unique/not being currently laid out for the system to not give me "Place was called on a node which was placed already"
.Zach Klippenstein (he/him) [MOD]
09/02/2021, 7:04 PMSubcomposeLayout
might be your best bet here. You basically described how the lazy lists work.Chris Johnson
09/02/2021, 7:36 PMSubcomposeLayout
. Was sure that I would run into the same issue of not being able to place the same placeable. But now that I'm looking at it more calling subcompose
would allow me to create a new placeable to place which should solve that. I'll try that next!
Zach to the rescue again. 🦸Zach Klippenstein (he/him) [MOD]
09/02/2021, 9:02 PMsubcompose
multiple times with the same content functionChris Johnson
09/02/2021, 9:14 PMLayout
that gets the measure and is then removed from composition via a mutableStateOf(Boolean)
+ a Layout
to place.
Or using Subcomposelayout
Zach Klippenstein (he/him) [MOD]
09/02/2021, 9:34 PMChris Johnson
09/02/2021, 9:50 PMZach Klippenstein (he/him) [MOD]
09/02/2021, 10:19 PM