performance - Android ListView Refresh Single Row -


After getting the data for a line of ListView , I want to update it single tier.

Currently I notifyDataSetChanged (); , but it responds very slowly to view . Is there any other solution?

One option is to manipulate directly in ListView . First check whether the indicator of the updated row is between getFirstVisiblePosition () and getLastVisiblePosition () , these two give you the first and last position in the adapter that appears in the adapter. Do the screen. You can then get the view from the getChildAt (int index) and change it.


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -