开发者

android radio group layout

I have a radio group tha开发者_StackOverflowt consists of 4 radio buttons and I'm trying to align them in 2 rows with 2 buttons in each row. How should I go about nesting layouts so that I get the desired result? I have tried putting 2 LinearLayout views with horizontal alignment inside the radio group but that didn't work. Is a table my only option?


You can't add a layout to a radio group. You are probably best handling the the selection criteria using your own code.

EDIT:

quick thought... not sure on what you are trying to achieve you could split the radiogroup into two. but since radiogroup is based on a LinearLayout i don't think it would help much.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜