Prevent the adapter from recycling views on scroll ( Edit do not ever do this.)

后端 未结 4 1185
走了就别回头了
走了就别回头了 2020-12-16 04:35

I have a custom base adapter that will take in an arraylist of data. From here it will fill out a grid view with custom buttons. It does so perfectly and fills up the gridvi

4条回答
  •  佛祖请我去吃肉
    2020-12-16 05:21

      public View getView(int position, View convertView, ViewGroup parent) {
            View itemview = null;
    
            itemview = getLayoutInflater().inflate(R.layout.ordermini, parent,false);
    
        }
    

    This will help to inflate a new view

提交回复
热议问题