title: android viewpager in popupwindow
body: <p>How can i place a swipeable <code>ViewPager</code> with three tabs inside a <code>PopupWindow</code>?<br>
  I'm totally curious about how to do that!
  The popup window is opened in a custom <code>View</code>.  </p>
  
  <p>currently i have only the popupwindow, which works excellent:  </p>
  
  <pre><code>LayoutInflater li = (LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
  View popup_view = li.inflate(R.layout.popup_view, null);
  
  final PopupWindow popup = new PopupWindow(context);
  popup.setWidth(ViewGroup.LayoutParams.FILL_PARENT);
  popup.setHeight(ViewGroup.LayoutParams.FILL_PARENT);
  
  popup.setTouchable(true);
  popup.setFocusable(true);
  
  popup.setContentView(popup_view);
  popup.showAtLocation(this, Gravity.NO_GRAVITY, 0, 0);
  </code></pre>
  
  <p>the popup_view.xml:  </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;!-- here i want to have the ViewPager with 3 tabs --&gt;
  </code></pre>
  
  <p>so i have three more layouts (<code>tab_one.xml</code> <code>tab_two.xml</code> and <code>tab_three.xml</code>)
  in which are for now only some test text.</p>