Listview items Animation Stop While Scrolling

android, java, listview

Solution

I used This Syntax in my Adapter And problem solved !

public class AdapterDownload extends ArrayAdapter<StructDownload> {

public AdapterDownload(ArrayList<StructDownload> array) {
    super(G.context, R.layout.item_layout, array);
}


private static class ViewHolder {

    public ViewHolder(View view)
    {

    }


    public void fill(final ArrayAdapter<StructDownload> adapter, final StructDownload item, final int position)
    {

    }
}


@Override
public View getView(int position, View convertView, ViewGroup parent) {

}

}

Thank You.

Problem

I am trying to show `ProgressBar` with a simple animation for each `ListView` item, but when I am scrolling, the `ProgressBar` animation stops. After scrolling ends the animation starts again. See image below. (source: axgig.com)

Original source