title: Dialog with custom theme centered programmatically?
body: <p>I have a dialog with a custom theme:</p>
  
  <pre><code>final Dialog d = new Dialog(this,android.R.style.Theme_Translucent_NoTitleBar_Fullscreen);
  </code></pre>
  
  <p>This makes my dialog background transparent.</p>
  
  <p>Now the problem is if I let the normal theme(style.dialog) it is centered in my screen but now it has no layout and is in the upper left corner of my screen. Is there a way to programmatically center the dialog?</p>