Setting up group of RadioButtons
- Add RadioGroup to layout -> add RadioButtons as subcomponents of RadioGroup
button.setChecked(true);
button.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
//perform action
}
});