How do I clear Android list?

Ngô Quốc Huy

New member
How do I clear Android list?
Answer
clear(); mAdapter. notifyDataSetChanged(); i.e. first you clear the list altogether, and then let the adapter know about this change. Android will take care of correctly updating the UI with an empty list.
 

Tìm kiếm

Back
Top