Here is my code:
Row {
Text(
text = text1,
maxLines = 1,
overflow = TextOverflow.Ellipsis,
)
Spacer(modifier = Modifier.width(2.dp))
Text(
text = text2,
maxLines = 1,
)
}
The text2's length is short (but not specical width) while text1's length may be long or short. I want text2 always visible and text1 shows ellipsis when it is long.
The Modifier.weight(1F) can't meet my requirement because text1 will
fill up the remaining space and text2 always at the end of Row. Is there any way to do that?