Notifydatasetchanged Android Listview
I have a list of items in my Application class: public class MyApp extends Application { private static ArrayList> list = new ArrayList
Solution 1:
Do not re-create the object of ArrayList or Array you are passing to adapter, just modify same ArrayList or Array again. and also when array or arrylist size not changed after you modify adapter then in that case notifydatasetchange will not work.
In shot it is work only when array or arraylist size increases or decreases.
Solution 2:
Solution 3:
Try this
Adapter.clear()
for (HashMap <String,String> object : Session.getList())
Adapter.add(object)
Post a Comment for "Notifydatasetchanged Android Listview"