在两行的Andr​​oid单选按钮 [英] Android RadioButtons on two lines

查看:126
本文介绍了在两行的Andr​​oid单选按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想有一条线,一个在下一行三个单选按钮,两个。

I want to have three radio buttons, two on one line and one on the next line.

我想到了使用RadioGroup中内的LinearLayout会工作前两个,然后只是有下一行的第三个。

I thought using a LinearLayout inside the RadioGroup would work for the first two and then just have the third one of the next line.

嗯,这是不行的,我可以选定所有单选按钮。

Well this doesn't work, I can just tick every radiobutton.

任何人都知道解决的办法还是应该只是做编程?

Anyone know a way around this or should I just do it programmatically?

感谢

推荐答案

RadioGroup中延伸的LinearLayout,所以要么你将不得不改写RadioGroup中延伸的R​​elativeLayout或最简单的将编程做

RadioGroup extends LinearLayout, so either you will have to rewrite RadioGroup extending relativelayout or easiest would be doing it programmatically

这篇关于在两行的Andr​​oid单选按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆