Yuri Drigin
07/19/2021, 2:49 PMRow but cannot figure out how to do it. For sample I have few texts in Row, but I need truncate the first one for sample, not the last
weight isn’t correct way to do it
ThanksAdam Powell
07/19/2021, 3:00 PMYuri Drigin
07/19/2021, 3:11 PMAdam Powell
07/19/2021, 3:12 PMfill optional parameter to weight, and setting it to false avoids filling the whole space but it does lower the element's measurement priority so that other siblings measure first.Yuri Drigin
07/19/2021, 3:23 PMRow(
modifier = Modifier.fillMaxWidth(),
horizontalArrangement = Arrangement.spacedBy(8.dp)
) {
Text(
text = walletName,
style = MaterialTheme.typography.body1,
maxLines = 1,
overflow = TextOverflow.Ellipsis,
)
Text(
text = amount,
modifier = Modifier
.weight(1f, fill = true),
style = FormularMonoTypography.body2,
maxLines = 1,
)
}
May be I wrong but it’s not as priority.Adam Powell
07/19/2021, 3:25 PMwalletName text.Yuri Drigin
07/19/2021, 3:25 PM+ from amount - only first symbolAdam Powell
07/19/2021, 3:26 PMYuri Drigin
07/19/2021, 3:27 PMYuri Drigin
07/19/2021, 3:28 PMModifier.weight(1f, fill = false)
on the walletName?Yuri Drigin
07/19/2021, 3:29 PMYuri Drigin
07/19/2021, 3:33 PMfill = false yearly