How to show a ProgressDialog in a ListView scrolling
<p>I am using a List View in ma application and I bind all the values at the first time and when I scroll the List view its taking time to load. How can I put this in a thread and show a Progress-dialog there.</p>

<p>Please help me</p>

<p>Thanks in advance.</p>

<p>This is ma code</p>

<pre><code>public class CustomList extends ListActivity{
    ArrayList&lt;String&gt;  names =new ArrayList&lt;String&gt;();   
    ArrayList&lt;String&gt; links =new ArrayList&lt;String&gt;();
    String[] namess;
    String[] link;
     EditText txtsearch;
     @Override
     public void onCreate(Bundle savedInstanceState) {
     super.onCreate(savedInstanceState);
     setContentView(R.layout.customlistdemo);   
     txtsearch=(EditText)findViewById(R.id.EdittxtSearch);
     //Static values just for testing
     names.add("Arun PS");   
     names.add("Nikhil");   
     names.add("ABcdefg");
     names.add("Vasu kuttan");
     names.add("Balu kuttan");
     names.add("abu kuttan");
     names.add("lalu kuttan");
     links.add("drawable/alert_dark_frame");
     links.add("drawable/alert_dark_frame");
     links.add("drawable/alert_dark_frame");
     links.add("drawable/alert_dark_frame");
     links.add("drawable/alert_dark_frame");
     links.add("drawable/alert_dark_frame");

     namess=names.toArray(new String[names.size()]);     
     link=links.toArray(new String[links.size()]);

    //Binding the list view values there..
     this.setListAdapter(new MyArrayAdaptor(this,R.layout.customlist, namess,link,R.id.TextViewUsername,R.id.ImgUser));

    // ListView lv = (ListView)findViewById(R.id.listbase);

     ListView lv = getListView();
     lv.setTextFilterEnabled(false);  

     }
}
</code></pre>
