Answer the question
In order to leave comments, you need to log in
How to clear ListAdapter?
On button click I pass data to ListView via ListAdapter. How much I press as much and add, that is, duplication. How to clean adapter before output?
Answer the question
In order to leave comments, you need to log in
ListAdapter is a generic interface.
It has many implementations:
ArrayAdapter <T> , BaseAdapter , CursorAdapter , HeaderViewListAdapter , ResourceCursorAdapter , SimpleAdapter , SimpleCursorAdapter , WrapperListAdapter
Which implementation exactly are you using?
For example, if ArrayAdapter, then it has a clear method .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question