Radio buttons side by side alternative in Android

梦想与她 提交于 2020-01-14 08:22:10

问题


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!


回答1:


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.



来源:https://stackoverflow.com/questions/23464648/radio-buttons-side-by-side-alternative-in-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!