【发布时间】:2021-08-05 23:55:13
【问题描述】:
我按照官方文档了解Rows。
一切正常。 它水平排列视图,应用程序运行没有任何问题。
问题:
我想在 Row 中设置 HorizontalArrangement。 没有安排。
我的代码:
@Composable
fun SimpleRowArrangement(){
Row(horizontalArrangement = Arrangement.SpaceEvenly,
verticalAlignment = Alignment.Bottom) {
Text(text = "Row Text 1")
Text(text = "Row Text 2")
Text(text = "Row Text 3")
}
}
【问题讨论】:
-
同时应用 fillMaxWidth 修饰符
标签: android android-jetpack-compose