2

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

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?

Thanks

A_Porcupine
  • 1,008
  • 2
  • 13
  • 23

2 Answers2

2

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

nandeesh
  • 24,740
  • 6
  • 69
  • 79
0

Try to

your3rdRadio.addRule(RelativeLayout.BELOW, otherRadio.getId());
ChristopheCVB
  • 7,269
  • 1
  • 29
  • 54