Status Update
Comments
ti...@google.com <ti...@google.com>
ti...@google.com <ti...@google.com> #2
Can you try with the latest snapshot? Not reproducible for me on androidx-main.
to...@gmail.com <to...@gmail.com> #3
Ok, after trying a couple more versions, realized this is a duplicate of
From the release notes:
AndroidView's update callback's first invocation will now be defered until the view is attached, instead of running when the composition that introduces the AndroidView is applied. This fixes a bug where the update callback wouldn't be invalidated if a state it read was changed immediately by an effect. (Ie9438,
) b/291094055
Sorry for the confusion!
va...@google.com <va...@google.com> #4
This might be a duplicate of
Description
Jetpack Compose component used: UI / Animation
When using:
```
Column(
modifier = Modifier
.align(Alignment.BottomEnd)
.padding(horizontal = 16.dp, vertical = 8.dp),
horizontalAlignment = Alignment.End,
) {
Card(colors = CardDefaults.cardColors(MaterialTheme.colorScheme.primary)) {
AnimatedVisibility(
visible,
enter = fadeIn() + expandIn(expandFrom = Alignment.CenterEnd) { IntSize(0, it.height) },
exit = fadeOut() + shrinkOut(shrinkTowards = Alignment.CenterEnd) { IntSize(0, it.height) },
) {
Column(
Modifier
.animateContentSize(),
horizontalAlignment = Alignment.End,
) {
items()
}
}
}
```
And removing some items on removal of one or more items the content jump to the start, then the animation starts and move everything.
The outer column is aligned to BottomEnd on a parent Box.
Is there something hidden to handle this? Of if it was to done manually how to achieve a nice resize of the container?
Tested many different variation but can't figure out a way to achieve this.
If everything is aligned to start all works.