title: How to remove border from Dialog?
body: <p>I have an activity which is shown in a dialog:</p>
  
  <p><img src="https://i.stack.imgur.com/AT3wX.png" alt=""></p>
  
  <p>In order to remove border and rounded corners, i tried this:</p>
  
  <pre><code>&lt;resources&gt;
    &lt;style name="ActivityDialog" parent="@android:style/Theme.Dialog"&gt;
    &lt;item name="android:windowBackground"&gt;@null&lt;/item&gt; 
      &lt;item name="android:windowFrame"&gt;@null&lt;/item&gt;
  &lt;/style&gt;
  </code></pre>
  
  <p></p>
  
  <p>The border is gone, but sadly also the margin around the dialog.</p>