Week 12 - Using RecyclerView and Custom Adapter in Android.pptx
1.
International Islamic UniversityH-10, Islamabad, Pakistan
Mobile Applications Development
Week 12
Using RecyclerView and
Custom Adapter in Android
Engr. Rashid Farid Chishti
https://chishti.web.app
http://youtube.com/rfchishti
2.
Introduction to RecyclerView
A RecyclerView is a powerful and flexible view group in Android that is used to
display large sets of data in a scrollable list or grid.
It’s an improved version of ListView and GridView, designed to be more
efficient and customizable.
It is optimized for handling large lists of data with minimal memory usage by
reusing (recycling) item views.
Advantages over ListView:
Efficient view recycling with ViewHolder pattern (built-in).
Supports vertical, horizontal, grid, and staggered layouts.
Provides animations, decorations (dividers, spacing)
Easy integration with custom adapters.
Make sureyou have the following in your build.gradle (app):
dependencies {
implementation
"androidx.recyclerview:recyclerview:1.3.2"
}
1. Adding RecyclerView Dependency