title: Android: I am unable to have ViewPager WRAP_CONTENT
body: <p>I have setup a simple ViewPager that has an ImageView with a height of 200dp on each page.</p>
  
  <p>Here is my pager:</p>
  
  <pre><code>pager = new ViewPager(this);
  pager.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT));
  pager.setBackgroundColor(Color.WHITE);
  pager.setOnPageChangeListener(listener);
  layout.addView(pager);
  </code></pre>
  
  <p>Despite the height set as wrap_content, the pager always fills the screen even though the imageview is only 200dp. I tried to replace the height of the pager with "200" but that gives me different results with multiple resolutions. I am unable to add "dp" to that value. How do I add 200dp to the pager's layout?</p>