I'm unable to get a ViewPager nor its contents to appear. What am I missing? I've included two versions of the XML layout below. Version#1 includes the ViewPager. Version#2 excludes the ViewPager so you can see there is content that should be visible within the ViewPager. Your thoughts would be appreciated on how to resolve this.

Edit--the adapter code is now included. It's worth noting that the ViewPager content is not visible *even in Eclipse*. I.e., I believe the adapter is independent of the problem.

```
    class MyPagerAdapter extends PagerAdapter {
    public Object instantiateItem(View collection, int position) {
        return guideContainer.getChildAt(position); 
    }

    @Override
    public int getCount() {
        return timeSlotContainersHD.length;
    }

    @Override
    public boolean isViewFromObject(View arg0, Object arg1) {
        return arg0 == ((View) arg1);
    }

     @Override public void destroyItem(View arg0, int position, Object arg2)  {  
     } 
}

```

Version #1 including ViewPager:

```
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/GuideSideScrollView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/Green"
android:fillViewport="true" >

<LinearLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_gravity="top|center"
    android:background="@color/Orange"
    android:orientation="vertical" >

    <TextView
        android:id="@+id/MiddleView"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_weight=".05"
        android:gravity="center"
        android:text="ViewPager Below Me"
        android:background="@color/black"
        android:textColor="@color/Orange" />

    <android.support.v4.view.ViewPager
        android:id="@+id/GuideViewPager"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_weight="1" >

    <LinearLayout
        android:id="@+id/TimeSlots1"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_margin="5dp"
        android:background="@color/red"
        android:orientation="vertical" >

        <Button
            android:id="@+id/FirstButton"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="Button1"
            android:textSize="12sp" />

        <Button
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="Button2"
            android:textSize="12sp" />
    </LinearLayout>

    <LinearLayout
        android:id="@+id/TimeSlots2"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_margin="5dp"
        android:background="@color/Green"
        android:orientation="vertical" >

        <Button
            android:id="@+id/FirstButton"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="Button3"
            android:textSize="12sp" />

        <Button
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="Button4"
            android:textSize="12sp" />
    </LinearLayout>

    </android.support.v4.view.ViewPager>

    <TextView
        android:id="@+id/TimeSlot1Program2"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="@color/Charcoal"
        android:gravity="center"
        android:text="ViewPager Above Me"
        android:textColor="@color/Orange" />
   </LinearLayout>

</ScrollView>

```

![Screenshot of version#1](https://i.stack.imgur.com/Pxvub.png)

Version #2 excluding ViewPager:

```
<LinearLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_gravity="top|center"
    android:background="@color/Orange"
    android:orientation="vertical" >

    <TextView
        android:id="@+id/MiddleView"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_weight=".05"
        android:gravity="center"
        android:text="NO ViewPager Below Me"
        android:background="@color/black"
        android:textColor="@color/Orange" />

    <LinearLayout
        android:id="@+id/TimeSlots1"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_margin="5dp"
        android:background="@color/red"
        android:orientation="vertical" >

        <Button
            android:id="@+id/FirstButton"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="Button1"
            android:textSize="12sp" />

        <Button
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="Button2"
            android:textSize="12sp" />
    </LinearLayout>

    <LinearLayout
        android:id="@+id/TimeSlots2"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_margin="5dp"
        android:background="@color/Green"
        android:orientation="vertical" >

        <Button
            android:id="@+id/FirstButton"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="Button3"
            android:textSize="12sp" />

        <Button
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="Button4"
            android:textSize="12sp" />
    </LinearLayout>

    <TextView
        android:id="@+id/TimeSlot1Program2"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="@color/Charcoal"
        android:gravity="center"
        android:text="NO ViewPager Above Me"
        android:textColor="@color/Orange" />
</LinearLayout>

</ScrollView>

```

![Content visible when ViewPager removed](https://i.stack.imgur.com/7IgJq.png)