我想在同一个布局中有一个 RelativeLayout 和 LinearLayout

I want to have a RelativeLayout and LinearLayout in the same layout

http://i.stack.imgur.com/Utrxn.png

我制作了一张图片,展示了我希望布局的样子。基本上它是 LinearLayout 之上的 RelativeLayout。我为相对设置 layout_weight=3,为线性设置 layout_weight=1。到目前为止这还行不通。谁能告诉我我的 XML 有什么问题吗?

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context="kim.albert.marveleventtracker.EventDescriptionActivity">

<RelativeLayout
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:layout_weight="3"></RelativeLayout>

<LinearLayout
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:layout_weight="1"
    android:orientation="horizontal">
</RelativeLayout>

您应该将顶部布局更改为 LinearLayout,将方向设置为垂直