如何将 3 布局设置为页眉、正文、页脚?(以下不起作用)。
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<!-- HEADER -->
<include android:id="@+id/top_header"
layout="@layout/header2button"
android:layout_alignParentTop="true" />
<!-- BODY -->
<LinearLayout android:id="@+id/center_body"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_alignParentBottom="true">
<include layout="@layout/logo_2button" />
</LinearLayout>
<!-- FOOTER -->
<LinearLayout android:id="@+id/bottom_menu"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_alignParentBottom="true">
<include layout="@layout/footer2button" />
</LinearLayout>
<!-- MAIN PART -->
<LinearLayout android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_above="@id/top_header"
android:layout_below="@id/center_body"
android:layout_below="@id/bottom_menu"
android:layout_weight="1"
android:id="@+id/sub_content_view"
android:paddingBottom="5sp" android:background="#EAEAEA">
</LinearLayout>
</RelativeLayout>