How can I customize Android ProgressDialog?
<p>How can I completely customize Android ProgressDialog? I want to use Horizontal Style but with AdMob banner ad or rectangle ad within the dialog. 
According to me, I have to create custom style and resource file for the dialog. How can I do that?</p>

<p>But I want the horizontal progress bar as it is.</p>

<p>Current code:</p>

<pre><code>       progressDialog.setTitle("Downloading...");

       progressDialog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);
        progressDialog.setMax(100);
        progressDialog.setProgress(0);
        progressDialog.show();
       progressDialog.setCancelable(true);
</code></pre>