Listview items Animation Stop While Scrolling

后端 未结 3 1975
旧时难觅i
旧时难觅i 2021-02-13 03:26

I am trying to show ProgressBar with a simple animation for each ListView item, but when I am scrolling, the ProgressBar animation stops.

3条回答
  •  日久生厌
    2021-02-13 03:54

    I used This Syntax in my Adapter And problem solved !

    public class AdapterDownload extends ArrayAdapter {
    
    public AdapterDownload(ArrayList array) {
        super(G.context, R.layout.item_layout, array);
    }
    
    
    private static class ViewHolder {
    
        public ViewHolder(View view)
        {
    
        }
    
    
        public void fill(final ArrayAdapter adapter, final StructDownload item, final int position)
        {
    
        }
    }
    
    
    @Override
    public View getView(int position, View convertView, ViewGroup parent) {
    
    }
    

    }

    Thank You.

提交回复
热议问题