title: Custom Progress Dialog Animation
body: <p>I am working on <code>Custom Progress Dialog</code>. I've set its style like done in this SO question <a href="https://stackoverflow.com/questions/7738490/positionning-the-spinning-wheel-in-a-custom-progress-dialog">Positionning the spinning wheel in a custom progress dialog</a> My progress dialog is showing no animation at all. When I changed the <code>background</code> to <code>black</code> then it was only showing a black box. I want my progress dialog to animate. </p>
  
  <p>In activity I am doing something like this</p>
  
  <pre><code> public MyProgressDialog(Context context) {
          super(context, R.style.NewDialog);
      }
  </code></pre>
  
  <p>and the NewDialog is as:</p>
  
  <pre><code>&lt;style name="NewDialog" parent="@android:style/Theme.Dialog"&gt;
  
      &lt;item name="android:windowFrame"&gt;@null&lt;/item&gt;
      &lt;item name="android:windowBackground"&gt;@android:color/transparent&lt;/item&gt;
      &lt;item name="android:windowIsFloating"&gt;true&lt;/item&gt;
      &lt;item name="android:windowContentOverlay"&gt;@null&lt;/item&gt;
      &lt;item name="android:windowTitleStyle"&gt;@null&lt;/item&gt;
      &lt;item name="android:windowAnimationStyle"&gt;@android:style/Animation.Dialog&lt;/item&gt;
      &lt;item name="android:windowSoftInputMode"&gt;stateUnspecified|adjustPan&lt;/item&gt;
      &lt;item name="android:backgroundDimEnabled"&gt;true&lt;/item&gt;
      &lt;item name="android:width"&gt;50dip&lt;/item&gt;
      &lt;item name="android:height"&gt;50dip&lt;/item&gt;
      &lt;item name="android:background"&gt;@android:color/transparent&lt;/item&gt;
  
  &lt;/style&gt;
  </code></pre>
  
  <p>Any help is appreciated in advance</p>