title: How to set theme for indeterministic ProgressBar in ProgressDialog in Android
body: <p>I have an Android (developed on A2.2) app with following theme defined:</p>
  
  <pre><code>&lt;style name="ProgressBar"&gt; parent="@android:style/Widget.ProgressBar"&gt;
      &lt;item name="android:indeterminateDrawable"&gt;@drawable/progress_medium&lt;/item&gt;
  &lt;/style&gt;
  &lt;style name="AlertDialog" parent="@android:style/AlertDialog"&gt;
      &lt;item name="android:fullDark"&gt;@drawable/bgr_alert&lt;/item&gt;
  &lt;/style&gt;
  &lt;style name="MyTheme" parent="@android:style/Theme.Light.NoTitleBar"&gt;
      &lt;item name="android:alertDialogStyle"&gt;@style/AlertDialog&lt;/item&gt;
      &lt;item name="android:progressBarStyle"&gt;@style/ProgressBar&lt;/item&gt;
  &lt;/style&gt;
  </code></pre>
  
  <p>where 'progress_medium' drawable is my custom (blue) progressbar and 'bgr_alert' is custom (white) background.</p>
  
  <p>When I show the dialog (application's theme is 'MyTheme')</p>
  
  <pre><code>@Override
  protected Dialog onCreateDialog(int id) {
    progressDialog = new ProgressDialog(this);
    progressDialog.setCancelable(false);
    progressDialog.setIndeterminate(true);
    return progressDialog;
  }
  </code></pre>
  
  <p>the dialog that shows up contains custom background (white), but the indeterministic progressBar is not visible. </p>
  
  <p>On the other hand, if I set the progress drawable manually:</p>
  
  <pre><code>progressDialog.setIndeterminateDrawable(getResources().getDrawable(R.drawable.progress_medium));
  </code></pre>
  
  <p>everything is perfect - custom background and custom progress drawable.</p>
  
  <p>Any hint, why the progressBar drawable is not set implicitly by theme theme?</p>