Thizzer Thizzer - 1 year ago 108
Android Question

Android ListView Refresh Single Row

After I have gotten the data for a single row of a

, I want to update that single row.

Currently I am using
but that makes the
react very slowly. Are there any other solutions?

Answer Source

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.