What is notifyItemInserted?

Huyền Thu

New member
What is notifyItemInserted?
Answer
notifyItemInserted() (and the other methods like notifyItemRemoved() etc) can all be thought of as
“minor” changes. You’re telling the adapter exactly how the data set has changed, and so it can perform optimizations (like only re-binding the affected children).
 

Tìm kiếm

Back
Top