A
A
Anton @ Lyalin2017-08-03 13:32:28
Android
Anton @ Lyalin, 2017-08-03 13:32:28

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

1 answer(s)
J
J. Snow, 2017-08-03
@toxa_1995

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 question

Ask a Question

731 491 924 answers to any question