title: Changing background color of AlertDialog
body: <p>I was able to change background for regular Dialog quite easily, and now I want to assign my specific background color to AlertDialog as well. I have extracted the necessary pieces from android-17/styles.xml (the pieces I couldn't reference to simply subclass) and successfully altered button box bg color:</p>
  
  <pre><code>&lt;!--    Extracted from styles.xml for Holo theme   --&gt;
  
      &lt;style name="AlertButtonBarWithBackground" parent="@android:style/Holo.ButtonBar.AlertDialog"&gt;
          &lt;item name="android:background"&gt;@color/dialog_background_color&lt;/item&gt;        
      &lt;/style&gt;
  
      &lt;style name="AndroidHoloTextAppearance"&gt;
          &lt;item name="android:textColor"&gt;?android:attr/textColorPrimary&lt;/item&gt;
          &lt;item name="android:textColorHighlight"&gt;?android:attr/textColorHighlight&lt;/item&gt;
          &lt;item name="android:textColorHint"&gt;?android:attr/textColorHint&lt;/item&gt;
          &lt;item name="android:textColorLink"&gt;?android:attr/textColorLink&lt;/item&gt;
          &lt;item name="android:textSize"&gt;18sp&lt;/item&gt;
          &lt;item name="android:textStyle"&gt;normal&lt;/item&gt;
      &lt;/style&gt;
  
      &lt;style name="AndroidDialogWindowTitle"&gt;
          &lt;item name="android:maxLines"&gt;1&lt;/item&gt;
          &lt;item name="android:scrollHorizontally"&gt;true&lt;/item&gt;
          &lt;item name="android:textAppearance"&gt;@android:style/TextAppearance.DialogWindowTitle&lt;/item&gt;
      &lt;/style&gt;
  
      &lt;style name="AndroidDialogWindowTitle.Holo"&gt;
          &lt;item name="android:maxLines"&gt;1&lt;/item&gt;
          &lt;item name="android:scrollHorizontally"&gt;true&lt;/item&gt;
          &lt;item name="android:textAppearance"&gt;@style/AndroidHoloTextAppearance&lt;/item&gt;
      &lt;/style&gt;
  
      &lt;style name="AlertDialogTheme" parent="@android:style/Theme.Holo.Dialog"&gt;
          &lt;item name="android:windowBackground"&gt;@android:color/transparent&lt;/item&gt;
          &lt;item name="android:windowTitleStyle"&gt;@style/AndroidDialogWindowTitle.Holo&lt;/item&gt;
          &lt;item name="android:windowContentOverlay"&gt;@null&lt;/item&gt;
          &lt;item name="android:windowMinWidthMajor"&gt;@android:dimen/dialog_min_width_major&lt;/item&gt;
          &lt;item name="android:windowMinWidthMinor"&gt;@android:dimen/dialog_min_width_minor&lt;/item&gt;
          &lt;item name="android:buttonBarStyle"&gt;@style/AlertButtonBarWithBackground&lt;/item&gt;
      &lt;/style&gt;
  
  &lt;!--    End of extracted fragment  --&gt;
  
      &lt;style name="ActivityTheme" parent="android:Theme.Holo"&gt;
          &lt;item name="android:alertDialogTheme"&gt;@style/AlertDialogTheme&lt;/item&gt;
      &lt;/style&gt;
  </code></pre>
  
  <p>But no matter how I try altering text area background, the background of a shadow around dialog's perimeter is also altered. This is not the case with a regular Dialog, for which I've set bg color as follows:</p>
  
  <p>
      @color/dialog_background_color
  </p>
  
  <p>It still has the nice standard shadow, unaltered by the bg color, so I believe this can be done for alert dialog as well?..</p>