How to show a progress dialog on a particular view
<p>Something like this:</p>

<pre><code>ProgressDialog pd = new ProgressDialog(this);
pd.setMessage("Loading");
pd.show();
</code></pre>

<p>will show a dialog, which covers the whole screen, making all the other views inactive.</p>

<p>How can i show a dialog on a particular view, like say on an ImageView until the image is downloaded. While keeping other views active.</p>

<p><strong>Example: Amazon Applicaiton</strong></p>

<p>The <code>Spinner/Progress dialog</code> is shown as a complete different view, while other views are Active(Clickable). Is it some kind of Custom View ?</p>

<p><img src="http://i.stack.imgur.com/0wBeM.png" alt="enter image description here"></p>

<p><strong>What I tried:</strong></p>

<p>I tried to keep the <code>ImageView</code> or such <code>view</code> which take time to load, in a different <code>Fragment</code> and until that <code>view</code> is loaded, a <code>spinner</code> like <code>image</code> gets <code>animated(rotated)</code>. There must be a far simple way?</p>

<p>I tried with a <code>TextView</code>, the white background is a <code>fragment</code> with <code>TextView</code> being animated.</p>

<p><img src="http://i.stack.imgur.com/ha3vU.png" alt="enter image description here"></p>
