Kotlin RecyclerView

(Last Updated On: August 17, 2018)

In this post we will write in Kotlin a very simple example for RecylcerView.

First, you can search for RecyclerView in the view search box. Drag and drop the RecyclerView below ConstraintLayout and you will be prompt to import in app – build.gradle.

activity_main.xml

list_item.xml

 

MyCustomAdapter.kt

 

MainActivity.kt