title: How do I change only background color of ProgressDialog without affecting border in Android?
body: <p>I used the following code to change the background of Progress Dialog. But the color changes on the outside frame too as below. I want to change only inside the dialog.</p>
  
  <pre><code>&lt;style name="StyledDialog" parent="@android:style/Theme.Panel"&gt;
      &lt;item name="android:background"&gt;#083044&lt;/item&gt;
  &lt;/style&gt;
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/ZuITn.png" alt="enter image description here"></p>
  
  <p>As per the answer given at this question <a href="https://stackoverflow.com/questions/13347539/change-background-of-progressdialog">Change background of ProgressDialog</a></p>
  
  <pre><code>&lt;style name="StyledDialog" parent="@android:style/Theme.Dialog"&gt;
      &lt;item name="android:alertDialogStyle"&gt;@style/CustomAlertDialogStyle&lt;/item&gt;
      &lt;item name="android:textColorPrimary"&gt;#000000&lt;/item&gt;
  &lt;/style&gt;
  &lt;style name="CustomAlertDialogStyle"&gt;
      &lt;item name="android:bottomBright"&gt;@color/background&lt;/item&gt;
      &lt;item name="android:bottomDark"&gt;@color/background&lt;/item&gt;
      &lt;item name="android:bottomMedium"&gt;@color/background&lt;/item&gt;
      &lt;item name="android:centerBright"&gt;@color/background&lt;/item&gt;
      &lt;item name="android:centerDark"&gt;@color/background&lt;/item&gt;
      &lt;item name="android:centerMedium"&gt;@color/background&lt;/item&gt;
      &lt;item name="android:fullBright"&gt;@color/background&lt;/item&gt;
      &lt;item name="android:fullDark"&gt;@color/background&lt;/item&gt;
      &lt;item name="android:topBright"&gt;@color/background&lt;/item&gt;
      &lt;item name="android:topDark"&gt;@color/background&lt;/item&gt;
  &lt;/style&gt;
  </code></pre>
  
  <p>This code gives background color perfect. But since, dialog color and activity's background color is same. It appears <strong>like transparent with no border. I want some border as before.</strong></p>
  
  <p><img src="https://i.stack.imgur.com/saW53.png" alt="enter image description here"></p>