我正在使用Android的relativelayout,试图使两个按钮并排排列。 但是,当我使用layout_toLeftOf时,我的button02突然消失。 这很好,如果我使用layout_toRightof。有人知道为什么使用relativelayout的“toLeftof”时,视图消失
<Button
android:id="@+id/Button01"
android:layout_alignParentLeft="true"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:text="@+id/Button01">
</Button>
<Button
android:id="@+id/Button02"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:text="@+id/Button02"
android:layout_toLeftOf="@+id/Button01"
android:layout_alignTop="@+id/Button01"
android:layout_alignBottom="@+id/Button01"
>
</Button>
啊哈!我真笨!! – Nohappy 2011-03-06 12:53:04