I'm using Android Compose to develop a wearOS app. On my pixel watch, which have a rounded screen, I don't succeed in displaying the text correctly without it to be cropped.
My code is the following :
Scaffold {
Column(
modifier = modifier
.fillMaxSize()
.padding(vertical = Dimensions.xsPadding),
horizontalAlignment = Alignment.CenterHorizontally,
verticalArrangement = Arrangement.SpaceBetween
) {
Text(
game.game_name,
style = MaterialTheme.typography.body1.copy(
fontWeight = FontWeight.Bold,
),
textAlign = TextAlign.Center,
maxLines = 2,
overflow = TextOverflow.Ellipsis,
modifier = Modifier.padding(horizontal = Dimensions.xsPadding),
)
.......
}
}
And here is the result of what I have with a long text :