Created
August 3, 2022 18:47
-
-
Save chenzhang2006/8920d6f28a38994412d0bfcc084b1379 to your computer and use it in GitHub Desktop.
RecyclerView Binding
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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