I m new to android programing, i was displaying database content on list view and on click the list view item will delete that field from database but problem is that when click item data is deleted but changes are not reflected on listview. Once when come again to that page you can see the changes.
Asked
Active
Viewed 97 times
0
-
6reload the listview adapter items or call the notifydatasetchanged – manivannan Aug 08 '14 at 05:28
-
possible duplicate of [How to refresh Android listview?](http://stackoverflow.com/questions/2250770/how-to-refresh-android-listview) – Dhaval Parmar Aug 08 '14 at 05:33
-
Show your code...what you tried... – ORIGINAL Aug 08 '14 at 05:36
-
Did you try lisiview.invalidateViews();. And is it update your listView after scrolling? – Amsheer Aug 08 '14 at 05:37
-
add notifydatasetchange() after deleting the item from the listliew – Maveňツ Aug 08 '14 at 06:41