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

MarkRS

09/19/2023, 9:33 AM
Can I place composables according to their centre (not their top left corner)? I need to place (single letter) text composables very precisely within their parent so that, for example, I place a letter at the horizontal centre so its centre is on the centre line, not its left hand side. Previously (ie before compose) I found its measured size and adjusted accordingly, which I don't see how to do for a text composable. And placing the centre would be much easier 🙂
c

Csaba Kozák

09/19/2023, 12:45 PM
You can use the
Row#verticalAlignment
parameter.
m

MarkRS

09/19/2023, 1:54 PM
Thanks @Csaba Kozák
👍 1