Thizzer Thizzer - 1 month ago 9x
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?


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.