title: Not able to change dialog box background?
body: <p>I know this is very bad. From couple of hour I am trying to change the <code>theme</code> for <code>AlertDialog</code> but not to do so.</p>
  
  <p><strong>parent theme :</strong></p>
  
  <pre><code>&lt;!-- Base application theme. --&gt;
  &lt;style name="AppTheme" parent="Theme.AppCompat.NoActionBar"&gt;
      &lt;!-- Customize your theme here. --&gt;
      &lt;item name="android:background"&gt;@color/primary_background&lt;/item&gt;
      &lt;item name="android:colorPrimaryDark"&gt;@color/primary_background&lt;/item&gt;
      &lt;item name="android:navigationBarColor"&gt;@color/primary_background&lt;/item&gt;
      &lt;item name="android:popupBackground"&gt;@color/primary_background&lt;/item&gt;
      &lt;item name="android:alertDialogTheme"&gt;@style/myDialog&lt;/item&gt;
  &lt;/style&gt;
  </code></pre>
  
  <p><strong>Dialog theme :</strong></p>
  
  <pre><code>&lt;style name="myDialog" parent="Theme.AppCompat.Dialog"&gt;
      &lt;item name="dialogPreferredPadding"&gt;@dimen/dialog_padding&lt;/item&gt;
      &lt;item name="android:windowNoTitle"&gt;true&lt;/item&gt;
      &lt;item name="android:windowBackground"&gt;@color/white&lt;/item&gt;
  &lt;/style&gt;
  
  AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(new ContextThemeWrapper(context, R.style.myDialog));
  </code></pre>
  
  <p>I am not able to figure out what is going wrong. I think this is very easy . </p>