Status Update
Comments
cu...@gmail.com <cu...@gmail.com> #2
Why did you do this roy howell I just found this WHY I GOT PIC SENT TO FAMILY I AM NO DUMB ASS LIKE U MAKING A POLICE REPORT TOO MOM DID TY
ma...@google.com <ma...@google.com>
an...@google.com <an...@google.com> #3
Hey! Thanks for filling it.
There is a demo for items add/remove:https://cs.android.com/androidx/platform/frameworks/support/+/androidx-master-dev:compose/animation/animation/integration-tests/animation-demos/src/main/java/androidx/compose/animation/demos/AnimatedVisiblilityLazyColumnDemo.kt;l=19?q=animatedvisibility%20lazy&sq=&ss=androidx%2Fplatform%2Fframeworks%2Fsupport . Which unfortunately currently requires you to still continue passing removed items for then to animate. But we should improve the usability of it in the future. Plus there is no way to animate item move currently
There is a demo for items add/remove:
Description
1. List items swiping (and expanding neighbour items if item is added mid-list)
2. List items swiping away when removed
3. List items swapping around when moved
When used together with DiffUtil / ListAdapter, RecyclerView animations are actually kinda similar to how compose works (you just put list in, library calculates all changes and then displays proper transitions).
From what I can see, compose currently has no alternative to this nor do I see clear way of implementing it.