update Visible Row Views - Android android.widget

Android examples for android.widget:ListView

Description

update Visible Row Views

Demo Code

import android.view.View;
import android.widget.GridView;
import android.widget.ListView;

public class Main{

    public static void updateVisibleRowViews(ListView list) {
        int start = list.getFirstVisiblePosition();
        for (int i = start, j = list.getLastVisiblePosition(); i <= j; i++) {
            View view = list.getChildAt(i - start);
            list.getAdapter().getView(i, view, list);
        }//from   w w w.j a  v  a 2s  . com
    }

}

Related Tutorials