【发布时间】:2012-08-09 20:03:00
【问题描述】:
所以我有以下单选按钮。我想让它们像这样显示:
但是会发生这种情况:
我怎样才能让它像上面那样显示?
我可以在 Eclipse 的 GUI 编辑器中移动它,但它会从 RadioGroup 中删除 RadioButton!
在组内,它会忽略所有其他布局参数。
<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>
【问题讨论】: