Which method fills a row with data for a given position?

  1. inflate()
  2. onBindViewHolder()
  3. notifyAll()
  4. onCreateViewHolder()
Answer

B) onBindViewHolder()

onBindViewHolder binds data to the row views.

Computer Science MCQ · More UI Events, Views, Preferences and Data Storage MCQs · Practise