title: My dialog box is closing my keyboard
body: <p>I've been at this problem for a while now and I cannot fix it...</p>
  
  <p>I have a very simple activity, the layout has an <code>EditText</code> and a <code>Button</code>.</p>
  
  <p>The <code>Button</code> launches a <code>Dialog</code>.</p>
  
  <p>The problem is when the <code>EditText</code> is focused. The soft keyboard will be visible, and if the <code>Button</code> is pressed at this time, the keyboard closes and the <code>Dialog</code> opens. I would like the state of the keyboard to be maintained (closed/open) whenever the <code>Dialog</code> is created.</p>
  
  <p>I'm not adding any code to this question, as it's a very standard dialog.</p>
  
  <p><strong>ALSO</strong>, I cannot use an <code>AlertDialog</code> (which would solve the problem), due to needing full customization of the dialog. With an <code>AlertDialog</code>, It's impossible to get rid of the rounded border.</p>
  
  <p>Please help, thanks :)</p>