{"id":3025,"date":"2020-04-12T13:21:01","date_gmt":"2020-04-12T03:21:01","guid":{"rendered":"https:\/\/learntodroid.com\/?p=3025"},"modified":"2020-04-12T13:21:11","modified_gmt":"2020-04-12T03:21:11","slug":"android-radio-button-and-radio-group-tutorial-with-examples","status":"publish","type":"post","link":"http:\/\/10.0.0.14:32769\/android-radio-button-and-radio-group-tutorial-with-examples\/","title":{"rendered":"Android Radio Button and Radio Group Tutorial with Examples"},"content":{"rendered":"\n

RadioButton and RadioGroup are widgets used in Android development for when the user needs to capture a single option from a set of options that are all displayed at the once in the user interface.<\/p>\n\n\n\n

For each option that user can select from a RadioButton widget needs to be added to the layout. The RadioGroup is used to group the related RadioButtons together to ensure only one RadioButton in the RadioGroup can be selected at any one time.<\/p>\n\n\n\n

Common use cases for the Android RadioButton and RadioGroup widget include:<\/p>\n\n\n\n