Home > Mobile >  Android questions about Radiobutton explanation
Android questions about Radiobutton explanation

Time:11-29

, what does Radiobutton android applications in answering question to empty the selected by pressing one button, how the selected Radiobutton button into an int array, how display before the selected Radiobutton button,

CodePudding user response:

The description of some questions to you: problem solving process is a problem of two options, select a later, will enter a problem at the same time button to empty right? How display before the selected Radiobutton button, which you describe in which part of the answer?

CodePudding user response:

To empty the selected button: mRadioGroup clearCheck ();
Record their own choice, if there are only two options, that can put the results were recorded as 1 and 2, select the first button, in the method setOnCheckedChangeListener, determine which button, record the results of the corresponding to the array, it is workable,
  • Related