gpt4 book ai didi

android - 如何在 android jetpack compose 中相互重叠列表项?

转载 作者:行者123 更新时间:2023-12-04 23:37:16 25 4
gpt4 key购买 nike

enter image description here
我想实现这个ui。
如何在 android jetpack compose 中相互重叠帖子列表项?

最佳答案

如果您使用 Column 或 LazyList 来显示项目,则可以使用带有负 spacedBy 空间的 ve​​rticalArrangement 参数。

LazyColumn(
verticalArrangement = Arrangement.spacedBy((-32).dp)
) {
// Put the items to overlap here
}
spacedBy() doc

关于android - 如何在 android jetpack compose 中相互重叠列表项?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66931038/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com