How can I recreate listView?
I have listView with items containing few TextViews and I want, to reaload ListView and hide part of those TextViews from every row. I tried setting new adapter, clearing adapter (it makes listView empty), invalidating listView, using notifyDataSetChanged(). Nothing forced ListView to recreate items.
How can I recreate listView? I have listView with items containing few TextViews and
Share
Use a ArrayAdapter backed by an ArrayList. To change the data, just update the data in the list and call adapter.notifyDataSetChanged() – Robby Pond
Also please check Google I/O 2010 – The world of ListView