You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In LazyVerticalGrid, when an item is placed not on top of another item but an empty space where it can be moved, onMove is not called. Please check video atttached
Uploading screen-20241115-192129.mp4…
.
below is my data class.
data class Item(val id: Int, val text: String, val span: Int)
first, i make item like below.
val items = (0..200).map {
Item(id = it, text = "#$it", span = (it % 3) + 1)
}
In LazyVerticalGrid, when an item is placed not on top of another item but an empty space where it can be moved, onMove is not called. Please check video atttached
Uploading screen-20241115-192129.mp4…
.
below is my data class.
data class Item(val id: Int, val text: String, val span: Int)
first, i make item like below.
val items = (0..200).map {
Item(id = it, text = "#$it", span = (it % 3) + 1)
}
make grid like below.
LazyVerticalGrid(
columns = GridCells.Fixed(6),
modifier = Modifier.fillMaxSize(),
state = lazyGridState,
contentPadding = PaddingValues(8.dp),
verticalArrangement = Arrangement.spacedBy(8.dp),
horizontalArrangement = Arrangement.spacedBy(8.dp),
) {
list.forEachIndexed { index, item ->
item(key = item.id, span = { GridItemSpan(item.span) } ) {
The text was updated successfully, but these errors were encountered: