如何把视图设置成垂直的?

从 xml 代码中看,我觉的这里设置的视图相对于其它的应该是垂直显示,但相反,他们堆叠到一块。错误出现在哪呢?

 <RelativeLayout
            android:id="@+id/top_lay2"
            android:layout_below="@id/top_lay1"
            android:layout_width="fill_parent"
            android:layout_marginTop="10dp"
            android:orientation="vertical"
            android:layout_height="wrap_content"
            android:background="@drawable/customrect">
<TextView
            android:layout_gravity="center"
            android:layout_width="fill_parent"
            android:layout_height="wrao_content"
            android:textColor="@color/white1"
            android:text="some text"
         />
<Button
            android:layout_gravity="center"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:text="click me"
    />

    </RelativeLayout>

在一个 LinearLayout中,字段将是垂直显示,但是在 RelativeLayout 中,要指定视图的相对位置。所以如果你用"LinearLayout"代替 "RelativeLayout",就能设置成垂直的了。

父控件用LinearLayout