A_Porcupine
A_Porcupine

Reputation: 1038

Android RadioButtons on two lines

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

Upvotes: 2

Views: 1705

Answers (2)

nandeesh
nandeesh

Reputation: 24820

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

Upvotes: 2

ChristopheCVB
ChristopheCVB

Reputation: 7315

Try to

your3rdRadio.addRule(RelativeLayout.BELOW, otherRadio.getId());

Upvotes: 0

Related Questions