check all checkboxes and uncheck all checkboxes in android using RecyclerView

holder.getWingSelect.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {

@Override

public void onCheckedChanged(CompoundButton compoundButton, boolean b) {

Log.e("ids","msg"+compoundButton.isChecked());

if(compoundButton.isChecked())

{

//checked

int[] ids = new int[]{compoundButton.getId()};

Log.e("ids","msg==="+ids[0]);

int[] IDS;

for(int i=0;i
{

IDS=new int[i];

Log.e("ids","msg===="+IDS);

holder.getWingSelect.setChecked(true);

}

}

else

{ //uncheck

}

}

}

});[enter image description here][1]...

Read More »

By: StackOverFlow - 6 days ago

Related Posts