单选按钮下方的文本 [英] Text below RadioButtons
问题描述
我需要您的帮助来解决我的布局问题..我有4个RadioButton,它们在此方案中照常显示:
O O text2 O text3 O text4
其中O是按钮..我想知道是否可以通过这种方式更改此布局:
nbsp;/p>
text1 text2 text3 text4
默认情况下,我认为普通的RadioButton小部件无法做到这一点.您需要执行以下几项操作之一才能达到这种效果.您可以通过组合RadioButton和TextView来创建自己的RadioButton视图类,从而可以完全控制各个项目之间的相对位置.或者,您可以跳过使其成为视图,而仅在布局中使用两个元素,即一个TextView和一个RadioButton(未设置任何文本).
I need your help to solve my layout problem.. I have 4 RadioButtons, they appear as usual in this scheme:
O text1 O text2 O text3 O text4
where O is the button.. I would know if it's possible to change this layout in this way:
O O O O
text1 text2 text3 text4
I don't think the plain RadioButton widget can do that by default. You'll need to do one of a few things to achieve that effect. You can create your own RadioButton view class by combining a RadioButton and a TextView so that you have complete control over where the items are in relation to each other. Or you can skip making it a view and just use two elements in your layout, 1 TextView and one RadioButton(with no text set to it).
这篇关于单选按钮下方的文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!