Android
AND-401 · Question #134
Which of the following methods updates a ListView when an element is added to the data set?
The correct answer is C. notifyDataSetChanged(). See the full explanation below for the reasoning.
Question
Which of the following methods updates a ListView when an element is added to the data set?
Options
- Anotify()
- BnotifyAll()
- CnotifyDataSetChanged()
- DnotifyDataSetInvalidate()
How the community answered
(48 responses)- A17% (8)
- B4% (2)
- C71% (34)
- D8% (4)
Community Discussion
No community discussion yet for this question.