title: ViewPager not working if set layout_height = wrap_content
body: <p>I got issues when worked with <code>ViewPaper</code>. 
  It doesn't show anything when I set ViewPaper's <code>height = wrap_content</code> and it shows if I set height for <code>ViewPager</code> (ex: <code>android:layout_height= "350dp"</code>). Please help!
  Thanks!</p>
  
  <p>This is my xml code:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:background="@color/white"
      android:orientation="vertical" &gt;
  
      &lt;ScrollView
          android:id="@+id/scrollView"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:fillViewport="true"
          android:scrollbars="none" &gt;
  
          &lt;LinearLayout
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:orientation="vertical" &gt;
  
              &lt;TextView
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:layout_gravity="center"
                  android:background="#FF0000"
                  android:gravity="center"
                  android:text="Quick Links"
                  android:textColor="@color/white"
                  android:textSize="20sp" /&gt;
  
              &lt;RelativeLayout
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content" &gt;
  
                  &lt;android.support.v4.view.ViewPager
                      android:id="@+id/pager"
                      android:layout_width="match_parent"
                      android:layout_height="wrap_content" &gt;
                  &lt;/android.support.v4.view.ViewPager&gt;
  
                  &lt;com.viewpagerindicator.CirclePageIndicator
                      android:id="@+id/circlePage"
                      android:layout_width="match_parent"
                      android:layout_height="wrap_content"
                      android:layout_alignBottom="@+id/pager"
                      android:layout_marginBottom="10dp" &gt;
                  &lt;/com.viewpagerindicator.CirclePageIndicator&gt;
              &lt;/RelativeLayout&gt;
  
              &lt;com.custom.ExpandableHeightListView
                  android:id="@+id/lvAdmissions"
                  android:layout_width="match_parent"
                  android:layout_height="match_parent"
                  android:background="@color/white"
                  android:divider="@drawable/bg_listview_divider"
                  android:dividerHeight="1dp"
                  android:listSelector="@drawable/selector_animation" &gt;
              &lt;/com.custom.ExpandableHeightListView&gt;
          &lt;/LinearLayout&gt;
      &lt;/ScrollView&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p><strong>Resolved</strong>: I follow this link and it help me resolved this issues. <a href="https://stackoverflow.com/a/24666987/1928560">https://stackoverflow.com/a/24666987/1928560</a></p>