Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Radio buttons side by side alternative in Android

Is there any recommended alternative to the default "Radio Buttons side by side" solution when we need to show a small set of options (2 or 3) to the user? I mean, we usually do this:

enter image description here

But I've seen a lot of apps adapting something like "Segmented Controls" from iOS:

enter image description here

Which I don't think it's a good practice at all.

In my case specifically, I don't think hiding some of the options would be helpful to the user, so Spinners are not a real option. I won't be changing any views either, so it's not like I'm looking for tabs or something like that. And then we have toggle buttons and switches, which I don't think fits my needs, because I won't be switching between states. And finally we have this article that suggests to use simple regular buttons instead: http://kintek.com.au/blog/portkit-ux-metaphor-equivalents-for-ios-and-android/

I'm inclined to use an implementation with regular buttons, like the one in the article, but I wanted to know if there are any elegant alternative to this.

Thanks!

like image 427
Renan Ferrari Avatar asked May 05 '14 04:05

Renan Ferrari


People also ask

How do I get radio buttons side by side on android?

Use the android:orientation="horizontal" -attribute of the RadioGroup.

What can I use instead of a radio button?

If a user can select from multiple options, use checkboxes instead of radio buttons. Radio buttons allow the user to select only one item in a set whereas checkboxes allow the user to select multiple items. Do use checkboxes when multiple items can be selected.

What are the methods of radio button in android?

RadioButton is a two states button which is either checked or unchecked. If a single radio button is unchecked, we can click it to make checked radio button. Once a radio button is checked, it cannot be marked as unchecked by user. RadioButton is generally used with RadioGroup.


1 Answers

There are tons of questions posted on UX Stack Exchange on the topic of radio buttons vis a vis segmented controls, and there is one in particular about inserting radio buttons and checkboxes into buttons, but I cant seem to find it at the moment. I also, to the detriment of you and other readers, cannot add images or more than two links to my answer (so ill put them in as plain text) because I don't have enough reputation.Thanks whoever!

I think the main issue with the a segmented control is that, to quote user Pdxd on a UX Stack question : Is there any reason to use buttonsets over radio buttons / dropdown pickers?

the con to using button sets is it's difficult to see that you can only select 1 option at a time

I think this is especially true outside of the context of mobile.

I'm personally a big fan of what the product design team over at Dualingo is doing: they've combined a classic horizontal radio buttons and inserted them into buttons to make the targets large enough for touch-enabled devices. Personally, I think this is the best solution. enter image description here

jQuery mobile does something similar to this in for their vertically stacked radio buttons, but its worth noting that in the latest releases have moved to using segmented controls for horizontal radios on both jQuery UI and jQuery Mobile. jQuery Mobile Vertical Radiobuttons

like image 55
coffeecola Avatar answered Nov 01 '22 01:11

coffeecola