Socheat KHAUV
10/22/2020, 7:51 AMText(
maxLines = 2,
overflow = TextOverflow.Ellipsis,
text = "1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30", style = TextStyle(
fontFamily = FontFamily.Serif,
fontWeight =
FontWeight.W900,
fontSize = 14.sp,
)
then the title text will look become weird, I am not sure it is constraint layout bug or I missed out something.tieskedh
10/22/2020, 11:10 AMfun textInConstraintWithOffset() = ConstraintLayout(
Modifier.fillMaxSize()
) {
val (text2Ref) = createRefs()
Text(
text = (1..100).joinToString("-"),
color = Color.White,
modifier = Modifier.constrainAs(text2Ref) {
start.linkTo(parent.start, margin = 100.dp)
end.linkTo(parent.end)
}
)
}
Same problem is with guideline or box like you doVinay Gaba
10/22/2020, 4:06 PM