Is there an implementation available now that you ...
# compose
e
Is there an implementation available now that you can recommend for staggered grids with lazy?
c
Do you have an example of specific staggered effect you're looking for?
e
I want to obtain something similar to this example, as far as I understand I need to implement a custom layout but in the custom implementations, I've seen it composes all of the items in the list.
c
Yes, that likely requires a custom lazy layout, which there’s a new experimental API for this in 1.2.0-beta: https://developer.android.com/reference/kotlin/androidx/compose/foundation/lazy/layout/package-summary?hl=en#LazyLayout(android[…],kotlin.Function2)
Seems we don’t have thorough docs or codelabs on this yet so stay tuned
cc @Andrey Kulikov who might have some better code sample pointers
a
Yes, we are planning to provide it, but there is nothing just yet. I actually saw some third party implementation - https://github.com/devDebajo/staggered_lazy_column. Not sure how production ready it is as I didn’t try on my own, but why not to try
e
going to try those and stay tuned for new updates for custom lazy layout. Thanks for the info and the samples.