The closest I can get is to show toast
after each checkbox
is unchecked, but I want to show toast
only after they have all been unchecked. In my onBindViewHolder
I have:
((MatchingContact) viewHolder).check.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
// ((MatchingContact) viewHolder).check.setOnClickListener(new CompoundButton.OnClickListener() {
@Override
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
if (isChecked==false) {
Toast.makeText(context_type, "all unchecked!", Toast.LENGTH_SHORT).show();
}
}
});
Aucun commentaire:
Enregistrer un commentaire