Maybe a n00b question, but I can't seem to figure ...
# compose
a
Maybe a n00b question, but I can't seem to figure it out. I have a list of items I want to show, which is passed as a
List<Item>
to a Composeable. That one renders each one with a
items.forEach { ... }
. However, if the list changes I want the new ones to fade-in. But AnimatedVisibility doesn't really work here because the item is there or it is not, so I have no parameter to pass to AnimatedVisibility. What is the preferred way?
d
The lazy list API provides animation for that. Not sure if it's achievable with the non-lazy Column/Row. See https://developer.android.com/jetpack/compose/lists#item-animations
a
Ah, but that appears to be only item placement for reordering?
d
Yeah you right. Sorry I oversaw that. Not supported with lazy API atm and wip. See issue tracker
a
no worries, thanks for your help!