How to get Recyclerview
LayoutManager
functionality in Jetpack compose?
LazyColumn{
items(items.itemCount){
}
}
LinearLayoutManager
LazyColumn or LazyRow
GridLayoutManager
LazyVerticalGrid or LazyHorizontalGrid
StaggeredGridLayoutManager
LazyVerticalStaggeredGrid or LazyHorizontalStaggeredGrid
you can set like this|
LazyColumn(Modifier.fillMaxSize()) {
items(data) {
ListItem(it)
}
}