Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is That Possible multiple Radio Button select in android?

Is That possible select multiple radio button at one times? Just like checkbok.I have to show more in figure.

enter image description here

like image 303
Horrorgoogle Avatar asked Apr 05 '12 09:04

Horrorgoogle


People also ask

Can we select multiple radio buttons in android?

In android, Radio Group is used to group one or more radio buttons into separate groups based on our requirements. If we group Radio Buttons using RadioGroup, at a time only one item can be selected from the group of radio buttons.

Can radio buttons be multi select?

No, the radio button control allows for only 1 selection. Instead, you can use the checkboxes control which does allow for multiple selections.

How many radio buttons in a group of can be selected at the same time?

Only one radio button in a group can be selected at the same time. Note: The radio group must have share the same name (the value of the name attribute) to be treated as a group.

How can I avoid multiple selected radio buttons?

As per my understanding you want to group the radio buttons such that one is selected at a time you can do it by adding name attribute in each radio button and give same name to all of them. So at time of submit you can get the value of selected variable in submit function call.


1 Answers

If you don't put them all in a RadioGroup then yes. Either put them in several groups or manage them yourself completely.

But it's confusing for the user if you use radio buttons that behave like checkboxes.

like image 101
zapl Avatar answered Oct 20 '22 00:10

zapl