DEV Community

Janak  bista
Janak bista

Posted on

1.RecyclerView in kotlin

1.First we have to add dependency in build.gradle of app or module Folder .

dependencies {
implementation 'androidx.recyclerview:recyclerview:1.2.0'
}

2.Then we have to use RecyclerView Widget from androidx.widget.recyclerview.

3.Create RecyclerView items .
4.Make Adapter class to inflate Recycler items.
5.Then set Adapter on the required screen.

Top comments (0)