Adding multiples views freeze ProgressDialog
<p>I want to show a ProgressDialog while programatically it's adding multiples views to a layout. 
I have declared a ProgressDialog at the main Activity and then an AsyncTask is started that add the multiples views. On the onPostExecute of the AsyncTask the ProgressDialog is dismissed. The application works, but the problem is that the start up is slow and the ProgressDialog briefly freeze.
This is the main cycle of the AsyncTask. Column extend a LinearLayout.</p>

<pre><code>for(int i=0;i&lt;7;i++){                   
    ((LinearLayout) Global.a.findViewById(R.id.scrollLayout)).addView(new Column(Global.a,i));                  
}
</code></pre>
