Hi, I have an item in a LazyColumn where I update ...
# compose
h
Hi, I have an item in a LazyColumn where I update attributes that affect only some parts of the item. Currently it triggers individual recompositions inside the item on the parts where I used such attributes. Is there a way to recompose the whole item again with an update animation? Basically I want the item to update as a whole instead of only parts of it. Like the classic update behavior of RecyclerView
s
Why do you want parts of the composable to update even though they did not change? Also, what do you mean by having them update if they didn’t change? What do you expect to see on your screen?
h
One: In order to make the changes “smooth” I need to apply individual animations for each piece that can change within the item. Two: When updating the item, those individual animations doesn’t blend well, as they may change the size, or replace components. Sadly I can’t share the UI. But I hope you get the idea. I could achieve this in part using a
Crossfade
component with the root of the item. But it has an issue that causes the components that don’t change to “shine/blink” when the state changes, which is undesirable