android - need help in getting and putting data from RadioGroup -
android - need help in getting and putting data from RadioGroup -
rgroup = (radiogroup)findviewbyid(r.id.radiogroup); rgroup.setoncheckedchangelistener(new oncheckedchangelistener() { public void oncheckedchanged(radiogroup group, int checkedid) { toast.maketext(cont, checkedid, toast.length_short).show(); } });
in these code above, i'm trying user clicks on radio group,
i shouldn't utilize onclicklistener right?
you checkedid parameter. the id of checked radio button. can pass value findviewbyid radiobutton object.
android
Comments
Post a Comment