Jetpack Compose 列表差异动画 [英] Jetpack Compose list diffs animation
本文介绍了Jetpack Compose 列表差异动画的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有办法在 Compose 中的列表(列/行)更改上获得动画效果,看起来类似于带有 setItemAnimator
的 recyclerview 动画?
Is there a way to get an animation effect on a list (column/row) changes in Compose that looks something like recyclerview animations with setItemAnimator
?
推荐答案
目前没有办法通过 LazyColumn
/LazyRow
做到这一点.这很可能最终会被添加(尽管对未来的预测一如既往:没有承诺),但目前它的优先级低于让更多基本功能工作.
There is not currently a way to do this with LazyColumn
/LazyRow
. This is something that is likely to be added eventually (though as always with predictions about the future: no promises), but it's currently a lower priority than getting more fundamental features working.
注意:我在实现这些组件的团队中工作.如果情况发生变化,我会更新此答案.
这篇关于Jetpack Compose 列表差异动画的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文