title: Custom ProgressDialog inside antoher dialog issue
body: <p>I'm having troubles creating custom rounded ProgressDialog.</p>
  
  <p>Here is my rounded shape:</p>
  
  <p>roundeddialog.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;shape xmlns:android="http://schemas.android.com/apk/res/android"&gt;
      &lt;solid android:color="#FFCCCCCC"/&gt;
  
  &lt;corners android:bottomRightRadius="7dp" android:bottomLeftRadius="7dp" 
   android:topLeftRadius="7dp" android:topRightRadius="7dp"/&gt; 
  &lt;/shape&gt;
  </code></pre>
  
  <p>loadprogressdialog.xml is my style:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;resources xmlns:android="http://schemas.android.com/apk/res/android"&gt;
      &lt;style name="NewDialog" parent="@android:style/Theme.Dialog"&gt;
  
       &lt;item name="android:windowBackground"&gt;@android:color/transparent&lt;/item&gt;
       &lt;item name="android:textColor"&gt;#000000&lt;/item&gt;     
       &lt;item name="android:background"&gt;@drawable/roundeddialog&lt;/item&gt;
  
  &lt;/style&gt;
  &lt;/resources&gt;
  </code></pre>
  
  <p>My java code:</p>
  
  <pre><code>ProgressDialog dialog = new ProgressDialog(activity,R.style.NewDialog);        
  dialog.setMessage(loadDialogMessage); 
  dialog.show();
  </code></pre>
  
  <p>What shown is:</p>
  
  <p><img src="https://i.stack.imgur.com/Re8oS.png" alt="enter image description here"></p>
  
  <p>I don't want the inner dialog, just the outer one with the rounded corners.</p>
  
  <p>I can't figure out why the inner dialog is created.</p>
  
  <p>Can someone help ?</p>