title: Measuring a ViewPager
body: <p>I have a custom ViewGroup that has a child <code>ViewPager</code>. The ViewPager is fed by a <code>PagerAdapter</code> that provides a <code>LinearLayout</code> to the <code>ViewPager</code> which has <code>LayoutParams</code> of <code>WRAP_CONTENT</code> on both height and width.</p>
  
  <p>The view displays correctly but when the <code>child.measure()</code> method is called on the ViewPager it does not return the actual dimensions of the LinearLayout but seems to fill all the remaining space.</p>
  
  <p>Any ideas why this is happening and how to amend it?</p>