title: Android Popup Window Full Screen
body: <p>I want to create a popupwindow for fullscreen</p>
  
  <p>i've used the following :</p>
  
  <pre><code>LayoutInflater inflater = (LayoutInflater) MainActivity.this.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
  
  layoutt = inflater.inflate(R.layout.loginto,(ViewGroup) findViewById(R.id.window1));
  
  pwindow = new PopupWindow(layoutt,LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT,true);
  </code></pre>
  
  <p>This covers the action bar but not the full screen..</p>
  
  <p>Also LayuotParams.WRAP_CONTENT is supported by api 11+ . i need the solution to work from api level 8.</p>