【发布时间】:2020-10-05 20:16:53
【问题描述】:
是否可以从1.0.0-alpha03 开始垂直对齐文本中心而不嵌套组件Stack -> Text
Text(
modifier = Modifier
.size(150.dp, 30.dp)
.background(Colors.ChipGray, RoundedCornerShape(50)),
textAlign = TextAlign.Center,
text = start.value.format(DateTimeFormatter.ofPattern("dd. MM. HH:mm")),
)
【问题讨论】:
-
是否要在
Text()组件内垂直对齐文本?
标签: android kotlin android-jetpack-compose