How to display total checkbox checked in a recyclerview
问题 I am trying to create a simple pokedex where you can keep track of how many pokemons you have collected. The trouble I am having is the checkbox in a recyclerview. I want to have the total which is currently at zero, go up for each checkbox checked. If unchecked the number will go down. The total number is simply just shown in a text view. Below is an image showing what I am trying to explain, in case I am not explaining it as clearly. Here is my code Adapter Class class MainAdapter(val