これを試してください。
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#fff">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:orientation="vertical">
<TextView
android:layout_width="match_parent"
android:layout_height="50dp"
android:background="#ff0000"
android:gravity="center"
android:padding="5dp"
android:text="Top TextView"
android:textColor="#fff" />
<!-- You can remove min Height if you don't want it-->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#00ffff"
android:minHeight="100dp">
<ScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content">
<!-- Do you Code here.-->
</ScrollView>
</LinearLayout>
<TextView
android:layout_width="match_parent"
android:layout_height="50dp"
android:background="#ff0000"
android:gravity="center"
android:padding="5dp"
android:text="Bottom TextView"
android:textColor="#fff" />
</LinearLayout>
私はあなたが重力= center_verticalでのLinearLayout内のヘッダーとフッターとリストビューを使用することをお勧めします。 – rajesh