Umer
Umer

Reputation: 1556

What is the RecylerView Adapter responsible for? Select each of the following true statements:

  1. Creating a ViewHolder object for each RecylerView item.
  2. Caching the views associated with each item.
  3. Returning the number of item in the data source.
  4. Binding data from the data source to each item.
  5. Recycling item so they can be used again.
  6. Inflating each item view that will be display.

This is question from udacity and I am unable to answer it. According to my learning it's 1,4,5,6 but it's wrong. Actual question is here you can try it. Question

Upvotes: 6

Views: 3117

Answers (1)

Muhammad Younas
Muhammad Younas

Reputation: 1603

The adapter of recylerview is reposible for

  1. Creating a ViewHolder object for each RecylerView item.
  2. Returning the number of item in the data source.
  3. Binding data from the data source to each item.
  4. Inflating each item view that will be display.

You can check from the link here

Upvotes: 17

Related Questions