开发者

Handle two radio buttons in a table layout

开发者 https://www.devze.com 2023-03-27 05:02 出处:网络
In a table layout, there are two radio buttons in two rows. Is there any way to tie them as a group (as in radio group)? That means, user can check only one radio button at a time.

In a table layout, there are two radio buttons in two rows. Is there any way to tie them as a group (as in radio group)? That means, user can check only one radio button at a time.

I tried to handle the logic 开发者_高级运维at the event invocation using listener interfaces.

Any thoughts on a better way around?

Thanks in advance!


Implement setOnCheckedChangeListener(listener) on the radio buttons. When you get call in one radio button then uncheck other radio buttons.....

0

精彩评论

暂无评论...
验证码 换一张
取 消