Skip to content

Instantly share code, notes, and snippets.

@chenzhang2006
Last active August 3, 2022 19:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chenzhang2006/f83be86b6396e5b6da7268d0103b29fa to your computer and use it in GitHub Desktop.
Save chenzhang2006/f83be86b6396e5b6da7268d0103b29fa to your computer and use it in GitHub Desktop.
Compose LazyColumn
val items: List<Room> = rooms
val listState = rememberLazyListState()
LazyColumn(state = listState) {
items(items = items) { item -> RoomItem(item) }
}
@Composable
fun RoomItem(item: Room) {
Text(...)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment