0
這是我的佈局。問題是或者PageViewer的內容是可見的而沒有別的。如果我看到PageViewer消失,就會看到上面的所有內容。也試圖根據佈局作爲框架佈局,但它沒有幫助。主要的是隻有視圖傳呼機是可見的。我想要的是包含數據的2/3 ViewPager內容,以及1/3以上的一些標題資料。我不想使用重量,因爲上半部分的大小已經正確。我只想保證頂部和瀏覽器都能正常顯示。瀏覽器的特點是他們切換一切嗎?或者它們不能應用於另一個元素之下?爲什麼佈局的上半部分不顯示?
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:orientation="vertical"
android:layout_height="match_parent" >
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/mHeaderHeader"
android:visibility="visible"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical">
<include
android:id="@+id/myInclude"
layout="@layout/myInclude_layout" />
<include
android:id="@+id/myInclude2r"
layout="@layout/myInclude2" />
<FrameLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content" >
</FrameLayout>
<include
android:id="@+id/myInclude3"
layout="@layout/myinclude3layout" />
<ImageView
android:id="@+id/myImageView"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
/>
</LinearLayout>
<android.support.v4.view.ViewPager
android:id="@+id/myViewPager"
android:visibility="visible"
android:layout_width="match_parent"
android:layout_height="wrap_content"
/>
<include layout="@layout/myinclude4" />
</LinearLayout>
我想這個放在它下面的頁眉和頁腳以上.. 。 – 2012-08-10 08:03:12