I have a RecyclerView in which in each object of the RecyclerView I have a checkbox. Each time one of the checkboxes is pressed I would like to ins
The easiest way is to use EventBus https://github.com/greenrobot/EventBus
Just register it in your fragment and set @Subscribe method. Build simply class and pass data from adapter to fragment using EventBus.getDefault().post(new YourClass(yourData));
Another way is use intarfaces.
Caution!
When you will use checkbox in your adapter, you must remember old value from checkbox, and set in when list will be scrolled. Then you may be interested SparseBooleanArray