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:
But I've seen a lot of apps adapting something like "Segmented Controls" from iOS:
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!
Use the android:orientation="horizontal" -attribute of the RadioGroup.
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With