Code example for RadioGroup

Methods: getChildCountgetCheckedRadioButtonId

0
			} 
			// TODO 
			radio.setOnCheckedChangeListener(new OnCheckedChangeListener() {
                @Override 
                public void onCheckedChanged(RadioGroup group, int checkedId) {
                    int checked = group.getCheckedRadioButtonId();
                    group.getChildCount();
                } 
            }); 
			return radio;
		} else if(field.getType().equals(FieldType.SELECT)) {
			Spinner s = new Spinner(context);
			s.setAdapter(new ArrayAdapter<Option>(context, android.R.layout.simple_list_item_1, field.getOptions()){});
			//TODO set listener 
			return s;
		} else if(field.getType().equals(FieldType.CHECKBOXES)) { 
			CheckBox ch = new CheckBox(context);
			ch.setHint(field.getHint());
			//TODO set listener 
			return ch;