【问题标题】:Jetpack Compose: How can I align the height of the items of the first column in a row depending on the height of the second column?Jetpack Compose:如何根据第二列的高度对齐一行中第一列项目的高度?
【发布时间】:2023-02-06 01:50:26
【问题描述】:
我希望第一列的项目根据行中另一列的总高度来拉伸它们的高度。
现在我有了:
我希望它是这样的:
如果不通过计算对高度进行硬编码,这是否可能?
【问题讨论】:
标签:
android
android-jetpack-compose
【解决方案1】:
根据本文档link使用组合排列'等重'
Modifier.weight()