Lukasz Kalnik
12/23/2021, 12:55 PMRow
containing a free Text
element and two `TextButton`s. I want the Text
be aligned by baseline with the `TextButton`s:
Row(modifier = Modifier.alignByBaseline()) {
Text(
text = "Geräte",
style = MaterialTheme.typography.h6
)
TextButton(
onClick = { /*TODO*/ },
) {
Text(
text = "Alle an",
style = MaterialTheme.typography.h6,
)
}
TextButton(onClick = { /*TODO*/ }) {
Text(
text = "Alle aus",
style = MaterialTheme.typography.h6,
)
}
}
Stylianos Gakis
12/23/2021, 12:57 PMModifier.alignByBaseline()
to all Row children and see how it looks likeLukasz Kalnik
12/23/2021, 12:58 PMLukasz Kalnik
12/23/2021, 12:58 PMRow
doesn't need this modifier at allStylianos Gakis
12/23/2021, 1:04 PMLukasz Kalnik
12/23/2021, 1:06 PMRow
at first, but I realized it was not necessary there. Thanks for your super quick and helpful tip!