如何不与RelativeLayout重叠

Qui*_*nDa 3 layout android

我想要得到这样的布局:
在此输入图像描述
好的,我希望滚动在第一个imageview的结尾处开始,我希望滚动在第二个imageview的开始处完成.我的意思是,我不希望图像视图与滚动重叠.我不知道我是否解释得很好.
首先我尝试使用LinearLayout,但我无法在底部对齐第二个ImageView.使用RelativeLayout,ImageViews重叠滚动,我可以设置margin-top到滚动来解决第一个ImageView的问题,但我不知道如何解决第二个ImageView的问题.
我也尝试在LinearLayout中使用RelativeLayout,如下所示:

<LinearLayout ....>
<ImageView ...> </ ImageView>
<ScrollView ...> </ ScrollView>
<RelativeLayout ...>
<ImageView ....> </ ImageView>
</ RelativeLayout>
</ LinearLayout>

第二个ImageView没有出现.我猜滚动重叠了.
我将不胜感激任何帮助.谢谢你.

Aru*_*n C 5

使用

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent" >

    <ImageView
        android:id="@+id/imageViewTop"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentTop="true"
        android:src="@drawable/ic_launcher" />

    <ImageView
        android:id="@+id/imageViewBottom"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        android:src="@drawable/ic_launcher" />

    <ScrollView
        android:id="@+id/scrollView1"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_above="@+id/imageViewBottom"
        android:layout_below="@+id/imageViewTop"
        android:background="#006600" >

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:orientation="vertical" >
        </LinearLayout>
    </ScrollView>

</RelativeLayout>
Run Code Online (Sandbox Code Playgroud)