1 year ago
    I am trying to justify a single line of text. I have tried appending
    with no help. The first line of text is justified if I set
    maxLines = 2
    and let the text flow in second line. I am not so familiar with how justification works on android but is there a way to achieve this - a single line of text which can stretch to occupy full width of the screen?
        modifier = modifier.fillMaxWidth(),
        text = annotatedString,
        style = MaterialTheme.typography.h6.copy(
            textAlign = TextAlign.Justify,
        maxLines = 1,
        onClick = {