mattchowning
04/25/2023, 4:03 PMText
composable containing an email to display as much of the email as will fit. I thought TextOverflow.Visible
would give me what I wanted, but it is clipping off the entire ".com" part of the email as soon as it overflows just like TextOverflow.Clip
. š¤Box(Modifier.width(200.dp)) {
Text(
text = "<mailto:0123456789@gmail.com|0123456789@gmail.com>",
maxLines = 1,
overflow = TextOverflow.Visible,
)
}
TextOverflow.Ellipsis
gave me more of the content than TextOverflow.Visible
.Colton Idle
04/25/2023, 4:12 PMmattchowning
04/25/2023, 4:14 PMor is your issue just "why is it truncated so early?"Yes, that. I'd like it to show something like "0123456789@gmail.co" instead of truncating at the "."
Colton Idle
04/25/2023, 4:16 PMKirill Grouchnikov
04/25/2023, 5:59 PMmattchowning
04/25/2023, 6:05 PMColton Idle
04/25/2023, 6:09 PMmattchowning
04/25/2023, 6:09 PMColton Idle
04/25/2023, 6:28 PMAlbert Chang
04/26/2023, 4:35 AMModifier.wrapContentWidth(align = Alignment.Start, unbounded = true)
on the Text
.Siyamed
04/26/2023, 7:07 AMmattchowning
04/26/2023, 6:15 PMsoftWrap
, which worked perfectly. š
wrapContentWidth
also worked well, it just didn't work as well as softWrap
for me.Colton Idle
04/27/2023, 12:09 AM