This question has already been answered:
I have a ListView with my own adapter. In the markup there is a checkbox, whose state you need to change when you click on the list item in which it is located. Everything would be fine, but both the adapter and the model are in separate classes, since the ListView itself is initialized in a separate Activity .
Is it possible to accomplish this?