‫Welcome back.
‫Now let's move to the second method, which is the Getitem count.
‫This method returns the total number of items in the data set.
‫The recycler view uses this information to determine the number of items to display and to manage scrolling.
‫It's crucial for Recycler View to know the size of the data set to efficiently manage the creation and
‫recycling of views.
‫It's very simple return data set, which is our data set.
‫An array list items list passed in the primary constructor of this adapter class.
‫So data set is item list dot size.
‫This is how we configure the method get item count in the recycler view.
‫Now let's move to the third method which is the unbind Viewholder.
‫This method is called by the recycler view to bind data to the Viewholder at a specific position.
‫It takes a Viewholder as the first parameter and an integer as the second parameter, representing the
‫position of the item in the data set.
‫Inside this method, you update the views in the Viewholder with the data from your data set.
‫Here I start with the holder dot item title dot set text, and here I'll get it from the items list,
‫which is the data set in my position.
‫Dot name and holder dot description, dot set text items list passing position dot description and holder
‫dot image dot set image resource items list passing the position dot image.
‫So holder is the instance of RecyclerView dot view holder class.
‫And here I'm accessing item title which is the text view and using set text, which is the method included
‫in the text views to set the text of the text view.
‫And here I'm using the data set items list at index position and getting the name the similar for the
‫description and similar for the image.
‫This is how we configure the unbind view holder and get item count methods in adapters.