如何将检查的单选按钮值传递到Kotlin Android Studio中的文本视图中?
我制作了一个对话框,然后将广播组放入其中,然后添加三个无线电按钮1)男性2)女性3)如果用户选择男性,则应在文本视图中显示选定的无线电按钮男性
I made a dialogue box and I put radio group in it and I add three radio button 1)male 2)female 3)others if user select male so the selected radio button male should be shown in text View
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在这里,我想在这里与您分享一个简单的应用程序,并同时使用活动代码和布局代码。我希望这对您有帮助。
首先,布局
第二个主要活动代码
在运行代码时,您将获得以下两个屏幕。
屏幕1
屏幕2
Here, I would like to share you here a simple app with both the activity and layout code. I hope this will help you.
First the layout
Second the Main Activity code
When you run the code, you will get the following two screens.
Screen 1
Screen 2