Android progress bar not shown when create programmatically
<p>I need to show the progress bar in my app, but it will not visible if I run. I created the progress bar programmatically. pls refer my code below,</p>

<pre><code>ProgressBar progressBar = new ProgressBar(CusProgressActivity.this,
null, android.R.attr.progressBarStyleSmall);
progressBar.setVisibility(View.VISIBLE);
progressBar.bringToFront();
</code></pre>

<p>The above code is what is try to show the progress bar and I dont want to use the xml files to show the progress bar. I dont know whats wrong with my code and I need to show small progress in my activity by programmatically.</p>
