zoha131
11/22/2021, 1:40 PMCasey Brooks
11/22/2021, 3:22 PManimateDpAsState
combined with Modifier.offset
might be what you're looking for, but I would still look over this article to get a good idea of what's available with the animation APIs to see if another one fits your needs better
https://developer.android.com/jetpack/compose/animationDoris Liu
11/22/2021, 6:31 PMmaciejciemiega
11/22/2021, 8:03 PM.align(size, space, layoutDirection)
method returned an animated IntOffset
calculating it from source and target Alignments' align
methods 😅
The output is very similar, but animating this position directly is much more flexible than just animating Alignment.Doris Liu
11/22/2021, 9:59 PMonPlaced
would accommodate placement change for any reason, e.g. alignment, reflow, or even disappearing siblings in a Row/Column. This is also a stepping stone for shared element transition. 😛