title: Centering Custom Progress Dialog
body: <p>I have created a Custom ProgressDialog as follows:
  First I have an Animation List with 9 sequential Imges</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  </code></pre>
  
  <p></p>
  
  <pre><code>&lt;item android:drawable="@drawable/icon_progress_dialog_drawable_1" android:duration="150" /&gt;
  &lt;item android:drawable="@drawable/icon_progress_dialog_drawable_2" android:duration="150" /&gt;
  &lt;item android:drawable="@drawable/icon_progress_dialog_drawable_3" android:duration="150" /&gt;
  &lt;item android:drawable="@drawable/icon_progress_dialog_drawable_4" android:duration="150" /&gt;
  &lt;item android:drawable="@drawable/icon_progress_dialog_drawable_5" android:duration="150" /&gt;
  &lt;item android:drawable="@drawable/icon_progress_dialog_drawable_6" android:duration="150" /&gt;
  &lt;item android:drawable="@drawable/icon_progress_dialog_drawable_7" android:duration="150" /&gt;
  &lt;item android:drawable="@drawable/icon_progress_dialog_drawable_8" android:duration="150" /&gt;
  &lt;item android:drawable="@drawable/icon_progress_dialog_drawable_9" android:duration="150" /&gt;
  </code></pre>
  
  <p></p>
  
  <p>Then I have a custom style</p>
  
  <pre><code> &lt;style name="CustomDialog" parent="@android:style/Theme.Dialog" &gt;
      &lt;item name="android:windowFrame"&gt;@null&lt;/item&gt;
      &lt;item name="android:windowBackground"&gt;@null&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:windowSoftInputMode"&gt;stateUnspecified|adjustPan&lt;/item&gt;
      &lt;item name="android:backgroundDimEnabled"&gt;false&lt;/item&gt;
      &lt;item name="android:gravity"&gt;center&lt;/item&gt;
      &lt;item name="android:minHeight"&gt;70dip&lt;/item&gt;
      &lt;item name="android:maxHeight"&gt;80dip&lt;/item&gt;       
  </code></pre>
  
  <p></p>
  
  <p>Now In code I call it as follows</p>
  
  <pre><code> dialog = new ProgressDialog(KaguaHome.this); 
          dialog.setProgressStyle(R.style.CustomDialog);
          dialog.setIndeterminate(true);
          dialog.setIndeterminateDrawable(getResources().getDrawable(R.drawable.progress_dialog_icon_drawable_animation));
          dialog.show();
  </code></pre>
  
  <p>The result is
  <img src="https://i.stack.imgur.com/tu4vt.png" alt="enter image description here"></p>
  
  <p>I however want to achieve a progress Dialog with  only the image (No white background) and It should be centered,what should I modify?</p>