Перенести RadioButtons по горизонтали, если они слишком длинные для экрана

Итак, у меня есть следующие радиокнопки. Я хочу, чтобы они отображались вот так:

enter image description here

Однако это происходит:

radiogroup problem

Как я могу заставить его отображаться, как указано выше?
Я могу переместить его в графическом редакторе Eclipse, но он удаляет RadioButton из RadioGroup!
Внутри группы игнорируются все остальные параметры макета.

<RadioGroup
    android:id="@+id/radioGroup1"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_alignParentLeft="true"
    android:layout_below="@+id/timeBar"
    android:layout_marginTop="43dp"
    android:orientation="horizontal" >

    <RadioButton
        android:id="@+id/privRadio0"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Everyone" />

    <RadioButton
    android:id="@+id/privRadio1"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:checked="true"
    android:text="FriendOfFriends" />


 <RadioButton
    android:id="@+id/privRadio2"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="Friends" />
</RadioGroup>
11
задан TheRealKingK 9 August 2012 в 20:36
поделиться