https://kotlinlang.org logo
z

zoha131

03/02/2021, 1:01 PM
Is there any way to Align Composables based on Text’s baseline?
l

Lukasz Burcon

03/02/2021, 1:47 PM
You can use
alignByBaseline
modiifer
z

zoha131

03/02/2021, 3:05 PM
Thanks for the link. But I don’t think it can be used for alignment. I have a row containing two
Text
and I want both of them to be aligned according to the baseline.
l

Lukasz Burcon

03/02/2021, 3:06 PM
Yeah, then you should pack those texts in a row and set alignByBaseline modifier on both of them :)
z

zoha131

03/02/2021, 3:08 PM
Is that available? I can’t find that.
Ok, I found that. I was looking at
Alignment
. Why
Alignment
didn’t get this feature.