https://kotlinlang.org logo
#compose
Title
# compose
y

Yves Kalume

12/15/2021, 9:09 PM
what would be the best way to make the container of this LazyRow, TextField and LazyVerticalGrid scrollable knowing that we can't have nested scrollable in the same direction layouts ?
j

Jan Bína

12/16/2021, 12:54 PM
You should create one big
LazyColumn
.
LazyRow
and
TextField
will be the first two `item`s of this Column. Then you have to basically take out the content of
LazyVerticalGrid
and paste it inside that column as well. You can also try spans in LazyVerticalGrid, support was added in version 1.1.0-beta03 (https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.1.0-beta03), however, there is this problem that makes it quite unusable: https://issuetracker.google.com/issues/207462103
1
y

Yves Kalume

12/18/2021, 11:22 AM
Can't put
LazyVerticalGrid
inside a
LazyColumn
or in a scrollable column
2 Views