单击图像按钮
我有一个问题。
有 4 个图像按钮(a1、a2 和 b1、b2)。您只能选择 a1 或 a2,不能同时选择两者。我应该检查这些按钮的每次点击吗?
我该怎么做?有人可以帮助我吗?
I have one question.
There are 4 ImageButtons(a1, a2 and b1, b2). You can chose only a1 or a2 and never both at the same time. Should I check each click on these buttons?
How can I do this? Can anyone help me?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
有一种简单的方法可以做到这一点:
当您单击一个按钮时,将其他按钮的启用设置为 false 并反对。
代码:
There is one easy way to do this:
when you click one button set enablet to false to other button and against.
Code: