https://kotlinlang.org logo
#compose
Title
# compose
a

Anthony

01/17/2022, 6:00 PM
Hello, in the simple row example shown below, when the current timestamp changes value, all the text shifts to the side depending on the current timestamp length. Is there a way to prevent this and just have the artist text be uninfluenced by a change in the current timestamp size?
Copy code
Row(horizontalArrangement = Arrangement.SpaceBetween, modifier = Modifier.fillMaxWidth()) {
    Text(currentTimeStamp ?: "--")
    Text(artist ?: "")
    Text(endTimeStamp ?: "--")
}
l

Libor Bicanovsky

01/17/2022, 6:02 PM
You could add a fixed width to the current and end timestamp so they won't resize and reposition the artist text
👍 1
3 Views