https://kotlinlang.org logo
#compose
Title
# compose
r

Richard Graham

07/26/2021, 3:45 AM
Hi there. Has anyone had trouble with using Compose in an existing screen? I have an Composable button that handles its own text. When the text is updated the whole element flashes on screen and appears to enter on the left or right side depending on whether the text is expanding or shrinking. I've tried adding
android:animateLayoutChanges="false"
to the xml file and have played around with
AnimatedContent()
and
.animateContentSize()
to no avail. I'm assuming it has something to do with the whole element being updated for some reason but am out of ideas on how to fix it, any thoughts?
2 Views