Zoltan Demant
02/02/2024, 9:06 AMZoltan Demant
02/02/2024, 9:10 AMtween(500)
to rule out any Spring/VisibilityThreshold issues.
Forward:
slideInVertically togetherWith scaleOut
Backward:
scaleIn + fadeIn togetherWith slideOutVertically
The AnimatedContent usage is a bit involved so I wont post the entire thing here, the gist of it is that Im calculating a Frame(content, index, key)
for each entry passed into my composable and then using targetState=topFrame
. In the transitionSpec I just check if(targetIndex>initialIndex) Forward else Backward, etc.Zoltan Demant
02/02/2024, 9:13 AMZoltan Demant
02/02/2024, 9:27 AMAlbert Chang
02/02/2024, 9:30 AMtargetContentZIndex
solves the problem.Zoltan Demant
02/02/2024, 9:32 AMtargetContentZIndex=500f
for the forward animation, the backwards one never specifies one (so 0). Maybe thats incorrect though? Ive tried using the index of the element for it but saw the same behavior then.Zoltan Demant
02/02/2024, 9:34 AMZoltan Demant
02/02/2024, 9:37 AMZoltan Demant
02/02/2024, 9:38 AM