I have written several check boxes to the screen plus an update button
for(int x = 0 ; x < Tempstr.length; x++){
String[] TempTempstr = Tempstr[x].split("@");
CheckBox cb = new CheckBox(v.getContext());
if (TempTempstr[4].equals("1")) {
cb.setChecked(true);
}
cb.setText(TempTempstr[0] + ", " + TempTempstr[1] + ", " + TempTempstr[2] + ",
" + TempTempstr[3] + ", " + TempTempstr[4]);
LinearLayout.addView(cb);
Button Update = new Button(v.getContext());
Update.setText("Update vacancies list");
LinearLayout.addView(Update);
Update.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
How do you loop through all the check boxes in thee onclick to the submit
button so that I can see which ones are set and ehich ones aren't
Thanks
Pam
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en