Stylianos Gakis
06/30/2022, 9:42 AM<androidx.compose.ui.platform.ComposeView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"/>
Inside of a <LinearLayout>
and I am experiencing a problem where for 1 frame the ComposeView starts aligned to the left and then it jumps to the center.
Is this something someone else has experienced as well? Any thoughts on a workaround aside from finally fixing that screen to not be so archaic 😅composeView.setContent {
Box { // This box is the size given from XML, match_parent for width in my case
AsyncImage(..., Modifier.align(Alignment.Center).heightIn(x.dp).padding(horizontal = number_to_align_to_what_I_had_in_xml))
}
}
It’d still be nice to know why I had this problem in the first place and if it’s something that’s just gonna happen all the time. If yes this might hurt the migration story of some people. I might have to report a bug if nobody points out that I may have done an obvious mistake.