i’m wondering how to make separated click listener on checkbox for every recycler view item i had implemented this interface for clicking the whole row not specific item of this row
public interface CustomItemClickListener {
public void onItemClick(View v, int position);
}
when checkbox is click toggle between checked/unchecked and do some logic to update database
something like this image RecyclerView Favorite Button
Aucun commentaire:
Enregistrer un commentaire