开发者

android radio group layout

开发者 https://www.devze.com 2023-02-09 07:11 出处:网络
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 de

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

精彩评论

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