vendredi 5 février 2016

Checkbox not true when checked for every panel in my recyclerview?

so I created a recyclerview and I am inflating an xml file into that recyclerview, inside my customxml file I have a checkbox, however, when I click on the checkbox it always gives me the true statement for the first panel in the recyclerview and the rest are false whats up with that?

  public void CheckBox(View view) {
    final CheckBox checkBox = (CheckBox) findViewById(R.id.checkBox);
    if (checkBox.isChecked()) {
        System.out.println("SET TO CHECKED");

    }

else{
        System.out.println("SET TO UNCHECKED");
        }

}




Aucun commentaire:

Enregistrer un commentaire