Stefan Oltmann
08/31/2021, 6:59 AMdefaultMinSize
, but that has not the effect I expected.
Row(
verticalAlignment = Alignment.CenterVertically
) {
Text(
text = text
)
Spacer(
modifier = Modifier.weight(1.0f)
)
Text(
text = photoCount.toString(),
maxLines = 1,
modifier = Modifier.padding(horizontal = defaultPadding).border(1.dp, Color.Red)
)
}
ms
08/31/2021, 7:01 AMweight(1f)
modifier to the second text, so that it takes remaining spaceStefan Oltmann
08/31/2021, 7:02 AMStefan Oltmann
08/31/2021, 7:03 AMAlex
08/31/2021, 7:12 AMweight(1f)
to the first text and make sure the first text is left-aligned, this should workAlex
08/31/2021, 7:12 AMStefan Oltmann
08/31/2021, 7:14 AM