Joshua U

RecyclerView is a widget for displaying lists of data. It recycles or reuses item views to make scrolling more performant. It can specify a list of item layout for each item in the data set. It supports animations and transitions.

To use the RecyclerView follow the steps:

Step-1: go to build.gradle(:app)

add implementation ‘androidx.recyclerview:recyclerview:1.2.1’ in dependencies{....}

Step-2: create new resource file by going res>layout>New>Layout Resource File give appropriate name to it e.g. item_view.xml

Step-3: Create new class app -> java>com.example.<yourapp> -> Kotlin calass/file give it an appropriate name e.x: MyAdaptor

Step-4: Implement RecyclerView.Adaptor and override its methods along with RecyclerView.ViewHolder

--

--

Joshua U

Joshua U

Python Enthusiast, Assistant Professor, Care for developing