title: Using custom ProgressDialog android
body: <p>I am using custom <code>ProgressDialog</code> in my application, I am able to make it custom but I also want to remove the upper border or window of <code>progressDialog</code>.
  In <code>styles.xml</code> I define <code>customDialog</code> as
      </p>
  
  <pre><code>&lt;style name="AppTheme" parent="android:Theme.Light" /&gt;
  
  &lt;style name="CustomDialog" parent="@android:style/Theme.Dialog"&gt;
      &lt;item name="android:background"&gt;#7BC047&lt;/item&gt;
      &lt;item name="android:textColor"&gt;#FFFFFF&lt;/item&gt;
      &lt;item name="android:windowBackground"&gt;@null&lt;/item&gt;
       &lt;item name="android:windowFrame"&gt;@null&lt;/item&gt;
  &lt;/style&gt;
  </code></pre>
  
  <p></p>
  
  <p>For removing the parent window I am setting <code>windowBackground</code> to null and <code>windowFrame</code> to null but it did't work for me.
  Currently my custom progress dialog look like that in the image given below<img src="https://i.stack.imgur.com/MTEtD.png" alt="enter image description here"></p>
  
  <p>I am using this code to set the style of <code>progressDialog</code>.</p>
  
  <pre><code> private void showProgressDialog() {
      progressDialog = new ProgressDialog(this,R.style.CustomDialog);
      progressDialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);
      progressDialog.setMessage("Logging in. Please wait.");
      progressDialog.show();
  }
  </code></pre>
  
  <p>So,help me regarding this issue any help should be really appreciated.</p>