如何將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>
爲什麼4佈局... – Trikaldarshi