In Android, RadioButton are mainly used together in a RadioGroup.In RadioGroup checking the one radio button out of several radio button added in it will automatically unchecked all the others. Now, when I press the button I want to get the CategoryID of the row whose radio button is checked. it does not line up with first line. Change the Text of the Radio Button as Red, Blue and Green. How to show multiple radio buttons inside AlertDialog box with DialogInterface OnClickListener method. I should tell you now that you can add the value attribute to the single-line text box above to add in some text before the user even starts typing. Not just for Checkboxes and Radio Buttons. This returns the name of the option that is currently selected. Creating radio buttons with Bootstrap 4 is very easy, you have to add the radio input class in your radio buttons. It should be used on your (text, radio and checkbox),