Before you want to change a row of the ListView content or display the Delete button, and so on, to adapter.notifydatasetchanged (); refresh, less data can also, when the data will obviously consume performance, a separate refresh of a line will not, this also thanks to Kun (Ox people , college roommate) teaches methods that I now share to everyone
In the place where you're going to refresh adapter.
Position is clicking the row position of the ListView
Of course, you need to change the data content before executing the following 2 lines of code.
For example:
if (orderlist[pos].getstatus () = = 0) {
orderList[pos].setStatus(1);
} else {
orderList[pos].setStatus(0);
}
This method refreshes a row item individually
View view = Listview.getchildat (Position-listview.getfirstvisibleposition ());
Listview.getadapter (). GetView (position, view, ListView);
ListView Single Row Refresh