checkbox in listview for multiple selection of contacts

前端 未结 3 1679
轮回少年
轮回少年 2020-12-18 16:12

I had tried to to put checkbox in listview through layout inflator and I got success but the problem is when I select the multiple contacts there is no problem but when I de

3条回答
  •  别那么骄傲
    2020-12-18 16:53

    nameCheckBox.setOnClickListener(new OnClickListener() {

                @Override
                public void onClick(View v) {
                    // TODO Auto-generated method stub
                    isChecked[position_clicked] = position;
                    Log.d("position", String.valueOf(position));
                }
            });
    

    this code in add more one arre list in stores all position and add or remove both said fast add ,second remove. and used to list in position your other method

提交回复
热议问题