title: Android dialog custom style
body: <p>I have a custom theme which is applied to the activity:</p>
  
  <pre><code>&lt;style name="Sample" parent="android:Theme"&gt;
    &lt;item name="android:dialogTheme"&gt;@style/Sample.Dialog&lt;/item&gt;
  &lt;/style&gt;
  
  &lt;style name="Sample.Dialog" parent="android:Theme.Dialog"&gt;
    &lt;item name="android:windowBackground"&gt;@drawable/sample_background&lt;/item&gt;
  &lt;/style&gt;
  </code></pre>
  
  <p>I'm creating a sample Dialog like this:</p>
  
  <pre><code>Dialog dialog = new Dialog(SampleActivity.this);
  dialog.setContentView(R.layout.sample_layout);
  dialog.show();
  </code></pre>
  
  <p>My custom dialog style isn't applied. Created dialog still has the standard background. What's wrong here?</p>