New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(android): hide radio buttons OptionDialog #10645
Conversation
Tests:
|
I have different thoughts on how this should be handled. (I've put some thought about this in the past, but haven't done anything about it yet.) First, I agree that we should not show a list of radio buttons where none of them are checked. It looks ridiculous. By default, it should be a vertical list of buttons. I'm pretty sure that's how most app developers want this to be handled. However, the OptionDialog does have a "selectedIndex" property which when set will check one of the radio buttons. In this case, using radio buttons are fine. This is also an Android and Windows only property. So, how about this? Instead of introducing a new "textOnly" property, we could simply check if the "selectedIndex" property is set. If it is, then use radio buttons. If not, then use normal buttons. What do you think? CC: @hansemannn |
Updated the example and using |
Using this in production now, works really great! Who ever reads this, please do not bump it to post 8.1.0 :). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CR: PASS
P.S.: Actually just moved to the BottomSheet API since it's even more used in best-practice apps these days. |
yes, looks more like the iOS part. But still it is great to remove the circles when they are not needed for most users 😄 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FR Passed Able to see dialog options with and without radio buttons depending on the toggle of the selected index. Tested with the test case mentioned above.
Test Environment
Google pixel xl 7.1.1 sim
APPC CLI: 7.0.10-17
Operating System Name: Mac OS Mojave
Operating System Version: 10.14.2
Node.js Version: 8.9.1
Xcode 10.1
|
JIRA: https://jira.appcelerator.org/browse/TIMOB-26793
Create an OptionDialog without the radio buttons: