I have a 'ChecklistItem' class that has the following properties:
private CheckBox checkBox;
private ImageButton noteButton;
private TextView vitalField;
I have an onClick Listener
for my checkbox. Now the problem is, when I click on that checkbox and the OnClick()
method gets called, how can I figure out what ChecklistItem that checkbox is a part of?
Whenever I click on a checkbox, I want to add the ChecklistItem
that the checkbox is a part of to an array, but the OnClick()
only knows about the checkbox that called it.
How can I get around this?
Aucun commentaire:
Enregistrer un commentaire