views:

538

answers:

1

After I have gotten the data for a single row of a ListView, I want to update that single row.

ATM. I am using notifyDataSetChanged(); but that makes the View react very slow, are there any other solutions?

+3  A: 

One option is to manipulate the ListView directly. First check if the index of the updated row is between getFirstVisiblePosition() and getLastVisiblePosition(), these two give you the first and last positions in the adapter that are visible on the screen. Then you can get the row View with getChildAt(int index) and change it.

Daniel Velkov