i manage to do when my checkbox inchecked my textview will append the text from checkbox, else when the checkbox uncheck the text will remove. how to remove from arraylist when the checkbox is unchecked.
if (((CheckBox) v).isChecked()) {
rrayList<String> data = new ArrayList<String>();
data.add(i);
String array[] = data.toArray(new String[0]);
for (int j = 0; j < array.length; j++) {
remark.append(String.valueOf(array[j]) + " ");
}
} else {
// how to do in my else statement
}
}
}
Aucun commentaire:
Enregistrer un commentaire