title: dialog not setting layout params
body: <p>using a dialog as a window I tried to set its layout as    </p>
  
  <pre><code>WindowManager.LayoutParams lp = new WindowManager.LayoutParams();
  
      lp.x = 120;
      lp.y = 120;
      lp.width = 800;
      lp.height = 450;
      Dialog dialog = new Dialog(cxt);
      dialog.getWindow().setAttributes(lp);
      dialog.setContentView(vFirst);
      dialog.show();
  </code></pre>
  
  <p>where </p>
  
  <pre><code>View  vFirst = inflater.inflate(R.layout.popup, container, false);
  </code></pre>
  
  <p>which is inside a button click,but it is not setting it.</p>