vendredi 23 octobre 2015

Is there a way to get 10 or more ID on android studio without doing manually?

im doing a application to see if a checkedBox is checked, But i have 21 checkbox, and i need to get the id of all checkbox to make an operation.

Is there a way to get all id to an array without doing it manually? i mean without doing the cast 21 times.~ like this.

CheckBox MineBox = (CheckBox) findViewById(R.id. ""); i dont want to do this. plis help me




Aucun commentaire:

Enregistrer un commentaire