Sample Project to show off how to build a scrolling with using RecyclerView & Adapters
-
Added the RecyclerView to the activity layout:
activity_main.xml -
Created a view for each list item:
item_person -
Created the adapter to load the data into each list item:
PeopleAdater.kt -
Here is where we set the adapter to the RecyclerView:
MainActivity.kt
If you wanna run the app yourself, Clone the project, then go to android studio and open an existing project and select the root of this project in which is cloned too.