dimanche 11 mars 2018

Anonymous checkboxes: Android

I'm creating a unknown number of checkboxes. Is there a way to set the boxes' text and listener?

final LinearLayout ll=(LinearLayout)findViewById(R.id.linear);

    for(int x=0; x<=12;x++;){
        ll.addView(new CheckBox(getApplicationContext()));




Aucun commentaire:

Enregistrer un commentaire