Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@chenzhang2006
Created August 3, 2022 18:47
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/8920d6f28a38994412d0bfcc084b1379 to your computer and use it in GitHub Desktop.
Save chenzhang2006/8920d6f28a38994412d0bfcc084b1379 to your computer and use it in GitHub Desktop.
RecyclerView Binding
val rooms: List<Room> = rooms
val recyclerViewAdapter = CustomAdapter(rooms)
val recyclerView: RecyclerView = findViewById(R.id.recycler_view)
recyclerView.layoutManager = LinearLayoutManager(this, LinearLayoutManager.VERTICAL, false)
recyclerView.adapter = recyclerViewAdapter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment