bodo
09/12/2024, 2:28 PMLazyVerticalGrid
which scrolls from top to bottom. but i need it horizontally
LazyVerticalGrid(
columns = GridCells.Fixed(9),
modifier = Modifier.background(Color.White)
) {
items(items = listOf(
"Section 1",
"Section 2",
"It 3",
"It 4",
"It 5",
"It 6",
"It 7",
"It 8",
"It 9"
),
span = { item ->
if (item == "Section 1") {
GridItemSpan(5)
} else if (item == "Section 2") {
GridItemSpan(4)
} else {
GridItemSpan(1)
}
}) {
Text(
text = it,
)
}
}
Any ideas how to achieve this? ThxDan MacNeil
09/12/2024, 3:32 PMLazyRow() {
items( ... ) {
Box() {
Column() {
Text()
Row() {
for( ... ) {
Text()
}
}
}
}
}
}
efemoney
09/15/2024, 2:01 AMLazyHorizontalGrid
?