使用 swiperefreshlayout 在列表视图上方设置 EditText

Set EditText above listview with swiperefreshlayout

我正在尝试将 EditText 置于列表视图上方,但我不明白为什么列表视图与编辑文本重叠。这是布局来源:

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:orientation="vertical"
    android:padding="10dp"
   >

    <RelativeLayout
        android:id="@+id/firstlayout"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:orientation="horizontal" >

        <TextView
            android:id="@+id/textEnter"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="hello" />

        <EditText
            android:id="@+id/editTextInput"
            android:layout_below="@+id/textEnter"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content" />
    </RelativeLayout>

    <android.support.v4.widget.SwipeRefreshLayout
        android:id="@+id/sw_refresh"
        android:layout_width="match_parent"
        android:layout_height="fill_parent">

    <!--layout which should be refreshed should come here-->
    <ListView
        android:id="@+id/list"
        android:layout_width="match_parent"
        android:layout_height="fill_parent"
        android:listSelector="@drawable/list_selector"
        android:background="@drawable/customshape"
        android:fadeScrollbars="false"
        >
        </ListView>

    </android.support.v4.widget.SwipeRefreshLayout>

</RelativeLayout>

我已经尝试了所有想法,但在 Android Studio designer 中出现布局保真度警告等错误

只添加这一行android:layout_below="@+id/firstlayout"

<android.support.v4.widget.SwipeRefreshLayout
    android:id="@+id/sw_refresh"
    android:layout_width="match_parent"
    android:layout_below="@+id/firstlayout"
    android:layout_height="fill_parent"> 

<ListView
    android:id="@+id/list"
    android:layout_width="match_parent"
    android:layout_height="fill_parent"
    android:listSelector="@drawable/list_selector"
    android:background="@drawable/customshape"
    android:fadeScrollbars="false" >
</ListView>
</android.support.v4.widget.SwipeRefreshLayout>