0
다음은 내 레이아웃 파일입니다. 그것은 foofragment와 foo_pager를 둘 다 포함하는 경우를 제외하고는 잘 동작합니다 (어느 것이 먼저 추가하는지에 따라 foofragment 만 표시되지만 foo_pager는 표시되지 않음). 내가 여기서 무엇을 놓치고 있니?동일한 레이아웃 내에 fragment + viewpager를 표시합니다. 하나도 표시되지 않습니다
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="@+id/linearLayout1"
android:layout_column="0"
android:layout_gravity="fill_horizontal"
android:layout_row="0"
android:orientation="vertical" >
<Button
android:id="@+id/button2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Button" />
<Button
android:id="@+id/button1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Button" />
<fragment class="view.foofragment"
android:id="@+id/foo_frag"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<android.support.v4.view.ViewPager
android:id="@+id/foo_pager"
android:layout_width="match_parent"
android:layout_weight="1"
android:layout_height="wrap_content" />
</LinearLayout>