title: Setting Dialog Size Programmatically
body: <p>In my program I create a dialog with the code below. Ideally I would like to scale the dialog by entering width and height parameter programmatically. Can anyone show me how to do this?</p>
  
  <pre><code>dialog = new Dialog(MainActivity.this);
  dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
  popUpLayout = Globals.layoutInflater.inflate(R.layout.pop_up_layout, null);
  dialog.setContentView(popUpLayout);
  dialog.show();
  </code></pre>