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

Roar Gronmo

12/14/2019, 1:38 PM
In XML it is possible to align neighbouring
TextView
on baseline (text baseline
app:layout_constraintBaseline_toBaselineOf
), is/will this be possible in @Compose ?
👌 1
a

Anastasia [G]

12/15/2019, 10:11 PM
If you put two `Text`'s into the Row, you can use Gravity.RelativeToSiblings(FirstBaseline) modifier applied to the Texts to achieve this. Read more about RelativeToSiblings here: https://developer.android.com/reference/kotlin/androidx/ui/layout/RowScope.