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
  • 938
  • 2
  • 11
  • 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,530
  • 6
  • 66
  • 77
0

Try to

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