radio-group is used to create a multiple-exclusion scope for a set of radio buttons. Checking one radio button that belongs to a radio group unchecks any previously checked radio button within the same group.
Questions tagged [radio-group]
1047 questions
-1
votes
1 answer
RadioGroup.setOnCheckedChangeListener is not working and returning null?
My name is Amaya, and I'm new in java and Android Studio. I'm building an expert system for my final class project, but I get stuck because my RadioButton or RadioGroups (to be honest, I didn't know which of those that make error). Actually, I want…

Amaya T
- 9
- 2
-1
votes
1 answer
dynamically set text in textView android
I have radio button group and spinner in my android activity.First, I choose a radio button, then I choose spinner item. I want to see selected spinner item in textView. However, when I change spinner item, textView does not update. It updates only…

merve
- 73
- 2
- 12
-1
votes
2 answers
-1
votes
1 answer
how to get data from select multiple radio button values in a Radio Group in android and store in database
how to get the data of selected multiple radio button values in a radio group and store in database..I have list View which is generating multiple Radio Groups .
1.I have a Custom ListView and a custom layout for it..which has a single Radio Group…

egom
- 21
- 5
-1
votes
1 answer
Trouble with the radio buttons in my quiz app
I am working on a quiz app.
There are 5 questions in the app.
For each question there are 4 options.
For each question i am using a radio group.
So far i am just able to display the toast message for every correct answer when the correct answer…

mani
- 27
- 8
-1
votes
1 answer
Set value to the radio button in the radio group in Android
I am building an app where I have radio group with three radio buttons. What I want is when I check the radio button I need to get the value of that radio button and save it in the realm database.
And after that I want to get that radio button value…

ahmed sharief
- 83
- 2
- 13
-1
votes
2 answers
android - Radio Buttons in a Fragment causing crash
This crashes when the fragment has launched. Could it be in the radio-button code?
RadioGroup q1;
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
…

Mylo
- 13
- 1
-1
votes
4 answers
how can i send radio button value and switch case option to server using json android?
I'm trying to make a registration form where all values are saving on the server, but i dont know how to send the radio buttons' value and switch option buttons' value to server.
I tried implementing this for the Radio buttons, but when this…

z.al
- 279
- 1
- 6
- 21
-1
votes
3 answers
How to add radiobuttons to radio group in 3*10 grid layout dynamically
I am trying to add radio buttons to radio groups with table layout when I started the code I am getting some error. Here is my code
RadioButton[] boxes = new RadioButton[30];
RadioGroup rg = (RadioGroup) findViewById(R.id.radiogroup);
…

Enes
- 89
- 1
- 2
- 8
-1
votes
1 answer
Javascript - If/Else If result
I have these blocks:
function generateEmail(){
if
(document.getElementById('emailOpt1').checked = "true") {
document.getElementById('generatedEmail').innerHTML = emailOpt1.value
}
else if
(document.getElementById('emailOpt2').checked = "true")…
-1
votes
1 answer
Android Radio Group java.lang.nullpointerexception
I am working on a Quiz App where I have Radio Group and 4 radio buttons for options. When I am selecting an option and clicking on Next button for next question it's working fine. But, when when no option is selected from radio group it is showing…

Mohit Patel
- 29
- 1
- 7
-1
votes
1 answer
One form, 7 radio button groups, once answer per group, answers can't be the same in each group
first time posting.
Not new to programming but very new to HTML and web coding. Using adobe dreamweaver. (any and all software, tools, sites, material suggestions appreciated)
objective: I need to make 13 groups of radio buttons with 13 selections…

SonicSoundVW
- 13
- 2
-1
votes
2 answers
How can I add radio buttons to a radio group I've made programmatically?
I am completely new to Android
i tried whatever I thought may work but everytime I get error. What's wrong here?
main_activity.xml

ShahinSorkh
- 599
- 1
- 9
- 23
-1
votes
1 answer
Redirecting to a struts action on clicking on a radio button
I have a set of radio buttons. When one of the options is selected, I want it to redirect to a Struts action.

SoulRayder
- 5,072
- 6
- 47
- 93
-1
votes
1 answer
Creating a series of radio groups in Android Eclipse
Brilliant stuff Umesh, thanks! You've taught me a lot there!
I've one more question if you don't mind.
I would now like to choose one radio button from each radiogroup (for Example, Chinese, Level 1, Guess the City) and then have the message at the…

Dan
- 1
- 2